无法连接到互联网
我使用 CLLocationManager 来确定当前位置,并使用maps.google.com 进行反向地理编码。每当我从 wifi 切换到 3g 网络并尝试运行获取当前位置的应用程序时,即使我有良好的 3g 信号,地图应用程序也会启动并显示一条消息“无法连接到互联网”。
这种事每次都会发生。有人见过这种行为吗?除了阻止该应用程序在后台运行之外,还有其他方法可以解决此问题吗?我正在释放 locationmgr 对象,因此没有缓存。
I'm using CLLocationManager to determine the current location and i'm using maps.google.com for reverse geocoding. Whenever I switch from wifi to 3g network and try to run my app which gets the current location, the map application launches with a message 'could not connect to the internet' even though i have a good 3g signal.
This happens everytime. Anyone seen this type of behavior before ? Any ways to work around it besides preventing the app in the background? I am releasing the locationmgr object so there is no cache.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论