Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Reachability *reachability = [Reachability reachabilityForInternetConnection]; // in this line it doesn't recognize "Reachability"
- [reachability startNotifier];
- NetworkStatus status = [reachability currentReachabilityStatus]; // In this line it doesn't recognize "NetworkStatus"
- if(status == NotReachable)
- {
- //No internet
- }
- else if (status == ReachableViaWiFi)
- {
- //WiFi
- }
- else if (status == ReachableViaWWAN)
- {
- //3G
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement