iPhone 4 丢失后多久会搜索一次数据服务?
长期读者,第一次提问。
我正在编写一个 iPhone 应用程序,需要以某种优雅的方式处理手机进出数据覆盖范围的情况。我可以设置带有通知的可达性,以查明它何时丢失或返回,但这对我了解收音机寻找信号的频率会很有帮助 - 并且这个速度会随着时间的推移而减慢吗?另外,我可以通过编程做些什么(比如当我知道我没有覆盖范围时对服务器进行 ping 操作)来加快速度吗?
电池寿命对我来说并不是一个大问题,而且我不会通过 iTunes 进行部署。
Long time reader, first time asker.
I'm programming an iPhone application that needs to handle the phone going in and out of data coverage with some elegance. I can set up the Reachability with notifications to find out when it gets lost or comes back, but it would be helpful for me to know how often the radios are looking for a signal - and does this rate slow down over time? Also, is there anything I can do programmatically (like pinging a server when I know I don't have coverage) to speed it up?
Battery life is not really a big concern for me, and I will not be deploying through iTunes.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你想要的都是可能的。首先获取 来自 Apple 的可达性代码 。然后您需要编写一个
checkNetworkStatus
实现。这就是通知的来源 -现在您需要开始通知 -
What you want is possible. First off get Reachability code from Apple. Then you need to write a
checkNetworkStatus
implementation. This is where notifications come -Now you need to start your notifications -