Last active
December 18, 2015 13:19
-
-
Save Geri-Borbas/5789208 to your computer and use it in GitHub Desktop.
Asking for Reachability is actually three lines of code.
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
SCNetworkReachabilityRef reachabilityRef = SCNetworkReachabilityCreateWithName(NULL, [@"google.com" UTF8String]); | |
SCNetworkReachabilityFlags reachabilityFlags; | |
SCNetworkReachabilityGetFlags(reachabilityRef, &reachabilityFlags); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment