I have problem with detect sim, i was used CTCarry but not dectect when device "No Service" , Please help me how to detect it.
Asked
Active
Viewed 161 times
1 Answers
0
Use the Reachability
class from Apple:
Reachability *reachability = [Reachability reachabilityForInternetConnection];
[reachability startNotifier];
NetworkStatus status = [reachability currentReachabilityStatus];
switch(status) {
case NotReachable:
return @"No Service";
case ReachableViaWiFi:
...
}
Alternatively you can use the SCNetworkReachability
class directly.

Mike Kwan
- 24,123
- 12
- 63
- 96
-
Reachability only help detected network, how to use Reachability detected "No Service" (or mobifone,viettel)? – vualoaithu Sep 10 '13 at 02:20
-
Just return it for the case of `NotReachable` - it is the same. Check my edited answer. – Mike Kwan Sep 10 '13 at 09:09
-
This is Carrier Name in CTCarrier class, use CoreTelephony.framework – vualoaithu Dec 13 '13 at 01:09