ios 如何从 3g 获取互联网数据和从 Wifi 获取应用程序特定数据
提问社区。我目前正在做这个应用程序,我想根据服务器应用程序不断更新的坐标点记录地图视图上的位置。服务器应用程序使用 wifi 发送此信息,我可以看到当数据进入时我正在更新注释的位置。当我尝试放大地图视图时,问题出现了,它似乎变得像素化。我做了一些试验,结果发现,由于某种原因,iPhone 没有更新地图视图的图块,因为它试图从 wifi 连接而不是 3g 连接获取数据。
我的问题是,如何(如果可能)强制地图视图从 3g 连接获取其图块更新。我知道我可以走“离线地图”路线,但我只是想看看是否可以做到。
谢谢您。
Question community. I am currently doing this application where I would like to record a position on the mapview based a coordinate point which is constantly being updated by a server application. The server application sends out this information using wifi and I can see that I am updating the position of my an annotation as the data comes in. The problem comes up when I try to zoom into the mapview, it seems to get pixelated. I did some trials runs and it turns out that for some reason the iphone does not update the tiles of the mapview because it is trying to get the data from the wifi connection as opposed to the 3g connection.
My question, how (if possible) do I force the mapview to get it's tile updates from the 3g connection. I am aware that I could go the "offline maps" route, however I would just like to see if this can be done.
Thank you kindly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否在一个封闭的网络中进行测试,其中您的 wifi 连接无法到达外界?为什么您的 WiFi 连接无法到达地图图块?您是在谈论 Google 磁贴吗?如果是这样,请与您的网络管理员联系并询问您是否需要设置代理。基本上这不是需要在代码中修复的问题,而是网络问题。 iPhone 将使用它能找到的任何网络来获取所需的信息,您需要确保它找到的网络可以访问互联网。
Are you testing within a closed network where your wifi connection does not reach the outside world? Why can your wifi connection not reach the map tiles? Are you talking about Google tiles? If so then speak to your network admin and ask if you need your proxies to be set up. Basically this is not something that needs to be fixed in your code, it's a network issue. The iPhone will use whatever network it can find to get the info it needs, you need to make sure the networks it finds have internet access.