- (int)checkForInternetConnection: (Reachability*) curReach { Reachability *reachability = [Reachability reachabilityForInternetConnection]; NetworkStatus internetStatus = [reachability currentReachabilityStatus]; NSLog(@Reachability changed: %u, internetStatus); UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@No Internet Connection! message:@This feature requires an Internet connection via WiFi or cellular network to work properly. delegate:nil cancelButtonTitle:@OK otherButtonTitles:nil]; [alertView show]; [alertView release]; }
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.