Hi I want to capture whenever user gets a network connectivity in my application for this I have added apples Reachability class and below is the snippet I am using in my ap
Simplest of ways:
reach = [Reachability reachabilityWithHostName:@"www.google.com"];
reach.reachableBlock = ^(Reachability *reach){
NSLog(@"Reachable");
};
reach.unreachableBlock = ^(Reachability *reach){
NSLog(@"Unreachable");
};
[reach startNotifier];
Everytime there is a change in network,respective blocks will be called.