
Untitled
By: a guest on
Apr 30th, 2012 | syntax:
None | size: 0.42 KB | hits: 186 | expires: Never
AFNetworking and No Internet Connection scenario
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleNetworkChange:) name:kReachabilityChangedNotification object:nil];
reachability = [Reachability reachabilityForInternetConnection];
[reachability startNotifier];
NetworkStatus remoteHostStatus = [reachability currentReachabilityStatus];
if(remoteHostStatus == NotReachable) {
//Your UIAlertView
}