Created
July 29, 2011 08:01
-
-
Save taketin/1113416 to your computer and use it in GitHub Desktop.
EasyUse Reachability 2.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Project Required SystemConfiguration.framework | |
// Project Include Reachability.h, Reachability.m | |
// | |
// typedef enum { | |
// NotReachable = 0, | |
// ReachableViaWiFi, | |
// ReachableViaWWAN | |
// } NetworkStatus; | |
// | |
+ (NetworkStatus)getReachability { | |
Reachability *curReach = [[Reachability reachabilityForInternetConnection] retain]; | |
NetworkStatus netStatus = [curReach currentReachabilityStatus]; | |
return netStatus; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment