Skip to content

Instantly share code, notes, and snippets.

@fousa
Created July 18, 2012 19:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fousa/3138103 to your computer and use it in GitHub Desktop.
Save fousa/3138103 to your computer and use it in GitHub Desktop.
AFNetworking Reachability
AFHTTPClient *client = [[AFHTTPClient alloc] initWithBaseURL:[NSURL URLWithString:@"http://www.apple.com"]];
[client setReachabilityStatusChangeBlock:^(BOOL isNetworkReachable) {
NSLog(@"Reachable %i", isNetworkReachable);
}];
#import <SystemConfiguration/SystemConfiguration.h>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment