I use reacheability class for checking my network connectivity in my app…
Reachability *reach = [Reachability reachabilityForInternetConnection];
NetworkStatus netStatus = [reach currentReachabilityStatus];
if (netStatus==NotReachable)
{
NSLog(@"NR");
}
I need to find when the network status change (i.e when the network status changes from reachable to notreachable and vice versa).
Is there any delegates to find this thinks, Any suggestions ?
Used this flag
kReachabilityChangedNotificationto find the change in network status and passed that to aNSNotificationCenterHere is the code: