ios - 如何在 iphone sdk 中获取运营商检测更新?

标签 ios iphone ios7

如何在 iphone sdk 中获取运营商检测更新?当我是否在覆盖范围内时,我需要显示它的状态。不想检查它是否连接到互联网。

最佳答案

您可以从source中查看以下内容

Even though Apple provides sample code for monitoring changes in network availability, Apple's Reachability class is a bit outdated and doesn't support ARC (Automatic Reference Counting). If you use AFNetworking, then you may want to consider AFHTTPClient, which also lets you monitor network interface changes.

However, my preferred solution is the wonderful Reachability class created and maintained by Tony Million. It supports ARC and leverages GCD (Grand Central Dispatch).

关于ios - 如何在 iphone sdk 中获取运营商检测更新?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24796015/

相关文章:

javascript - React-native 无法在导入 js 文件时解析模块

ios - 对齐 UITableViewHeaderFooterView 的 detailTextLabel

ios - 如何从 iOS 应用程序中保持 iphone 匿名?

iphone - 我什么时候开始看到付款?

ios-如何在应用程序处于事件和非事件状态时使用自定义声音发出警报和小睡

iphone - 将单个数组分成两个数组的代码如何?

iOS - 处理水龙头的 View ,但让滑动进入 super View

objective-c - UITableView 中的圆角 (iOS7)

ios - 在具有自动布局的位置添加 subview

iphone - 适用于 iOS 的 Google Drive 与 Google Doc?