I use AFNetworking in my app for every request (like login, get data from url, etc).
Take this for example: an user click on the login button and there\
With AFNetworking these are the steps that one has to follow in order to take advantage of setReachabilityStatusChangeBlock: after adding the AFNetworing classes -
SystemConfiguration.framework to your project#import AFHTTPClient in this subclass add below lines of code in init function -
[self setReachabilityStatusChangeBlock:^(AFNetworkReachabilityStatus status) {
NSLog(@"changed %d", status);
//your code here
}];