I have used Andrew's modified Reachability class.
-(void)viewDidLoad
[[NSNotificationCenter defaultCenter] postNotificationName:kReachabilityChangedNotification object:nil];
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(checkNetworkStatus:) name:kReachabilityChangedNotification object:nil];
When data is downloading I turn AirPort
off. But checkNetworkStatus
is not being called. Am I missing something. Please help me. This problem driving me nuts. Thanks in advance.
Did you tell the reachability instance to start broadcasting notifications?
Reachability *internetReachable = [Reachability reachabilityForInternetConnection];
// This will tell the notifier to start sending notifications
[internetReachable startNotifier];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With