Skip to content

Instantly share code, notes, and snippets.

@joshrobb
Created July 10, 2014 21:30
Show Gist options
  • Save joshrobb/9c212e19f8e81a22d4f2 to your computer and use it in GitHub Desktop.
Save joshrobb/9c212e19f8e81a22d4f2 to your computer and use it in GitHub Desktop.
NSString *reachabilityType = @"";
Reachability *reach = [Reachability reachabilityForInternetConnection];
if ([reach isReachableViaWiFi]){
reachabilityType = @"wifi";
} else if ([reach isReachableViaWWAN]){
reachabilityType = @"cellular";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment