Guest User

Untitled

a guest
Nov 20th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. Reachability *reachability = [Reachability reachabilityForInternetConnection];
  2. NetworkStatus remoteHostStatus = [reachability currentReachabilityStatus];
  3. if (remoteHostStatus == NotReachable) {
  4. // not reachable
  5. } else if (remoteHostStatus == ReachableViaWiFi) {
  6. // reachable via Wifi
  7. } else if (remoteHostStatus == ReachableViaWWAN) {
  8. // reachable via WWAN
  9. }
Add Comment
Please, Sign In to add comment