In my app I want to detect network status changes to do some operations at that time. I have added following code in app-delegate. when I turn on net connection "networkStatusChanged:
" method called once which is correct. and when I turn off net-connection it calls twice. can anyone help me to find out the problem please......
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(networkStatusChanged:)
name:kReachabilityChangedNotification
object:nil];
reachability = [[Reachability reachabilityForInternetConnection] retain];
[reachability startNotifier];