Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Reachability *reachability = [Reachability reachabilityForInternetConnection];
- NetworkStatus remoteHostStatus = [reachability currentReachabilityStatus];
- if (remoteHostStatus == NotReachable) {
- // not reachable
- } else if (remoteHostStatus == ReachableViaWiFi) {
- // reachable via Wifi
- } else if (remoteHostStatus == ReachableViaWWAN) {
- // reachable via WWAN
- }
Add Comment
Please, Sign In to add comment