简体   繁体   中英

How can i get updates of carrier detaction in iphone sdk?

How can i get updates of carrier detaction in iphone sdk? I need to show its status when i am in coverage area or not. Not want to check whether it is connected with internet or not.

You can check the following from 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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM