如何更新 CLLocationManager 中的位置
我正在开发地图应用程序,当我运行该应用程序时,它显示我当前的位置并获取正确的纬度和经度,必须通过邮件将信息发送给某人,我已经实现了所有的事情,直到邮件发送工作正常,我只需要有关更新 CLLocationManager 函数的帮助,发送邮件后,我尝试调用函数 [locationmanagerstartupdatinglocation] 但它被第二次调用,即使我已经让 NSTimer 第二次询问位置。
I am working on map application and when i run the app it shows my current location and getting the right latitude and longitude , have to send the information to someone through mail, I have implemented all the things and till the mail is send is working fine, i only need help regarding updating CLLocationManager function, after sending the mail, i have tried to call the function [locationmanager startupdatinglocation] however it got get called for the second time, even i have put NSTimer to ask for the location for second time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试像这个地方一样,
在 viewdidload 中并从计时器调用此方法,
Try like this place,
In viewdidload and call this method from timer,