I am trying to create a button on apple maps that will relocate the user if he or she navigates elsewhere.
I found some old solutions to this problem for like ios 7 or 8 which no longer worked in ios 9. This is what I tried
@IBAction func locateMe(sender: AnyObject) {
self.mapView.setUserTrackingMode(MKUserTrackingMode, animated: true)
}
there are no errors before I try to run it but when I do it says: editor placeholder in source file
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…