不更新 MKMapView 中的当前位置
我正在使用 CLLocationManager 更新当前位置,但有时当前位置会丢失。我不知道为什么当前位置正在丢失。
请帮助我摆脱这个困境。
谢谢你, 马丹·莫汉
I am using CLLocationManager to update the current location but some times the current location is lost. I don't know why the current location is losing.
Please help me out of this.
Thank you,
Madan Mohan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
位置可能因多种原因而丢失:
设备不再能够合理开放地访问天空,因此 GPS 卫星信息不可用。
没有足够的蜂窝塔可用于执行三角测量。
Wi-Fi 接入点不在已知接入点数据库中。
用户切换到飞行模式。
还有更多。位置感知应用程序必须假设它们随时会丢失地理位置信息。它通常会在片刻之后回来。
The location can become lost for a wide variety of reasons:
The device no longer has reasonably open access to the sky so GPS satellite information is unavailable.
There aren't enough cell towers available to perform triangulation.
The wifi access point isn't in the database of known access points.
The user switched to Airplane Mode.
And many more. Location-aware applications have to assume they'll lose geolocation information at any time. It often comes back moments later.
如果您没有收到有关您所在位置的任何更新,则可能会调用该代表
。您可以找出问题所在。
If you didnt get any update on your location then this delegate might be called
You can find out whats the problem is.