作者:mobiledu2402852413 | 来源:互联网 | 2023-05-17 19:05
Iamtryingtocreateabuttononapplemapsthatwillrelocatetheuserifheorshenavigateselse
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
我正在尝试在苹果地图上创建一个按钮,如果用户在其他地方导航,它将重新定位用户。我为这个问题找到了一些旧的解决方案,比如ios 7或8,它们在ios 9中已经失效了。这就是我所尝试的
@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
在我尝试运行它之前没有错误,但是当我这么做时,它说:在源文件中编辑占位符。
1 个解决方案