【发布时间】:2014-01-12 16:29:48
【问题描述】:
我尝试使用几个教程在我的应用中实现 GPS 功能。
我通过以下方式做到这一点: http://www.tutorialspoint.com/ios/ios_location_handling.htm
应用启动后获取 GPS 坐标。
但问题是,点击按钮后我无法再次调用 GPS 坐标,这意味着类似:
- (IBAction)getGpsCoords:(id)sender {
[[LocationHandler getSharedInstance]setDelegate:self];
[[LocationHandler getSharedInstance]startUpdating];
}
应该怎样才是正确的解决方案?我很高兴有人可以解释如何做得更好(有一些很好的例子或链接)。
感谢您的任何建议。
【问题讨论】: