mshamash/777efb-ipad — pull request #11 by stephandev (2014-09-03 09:54:46+00:00)
Title: Preventing the app from sleep in MapView, and added a method for the Datalink textfield

For the datalink textfield, I added the reachability check to mapView and use this in the Method:

// Method for Datalink textfield

- (void) datalinkTextField {
switch ([self checkInternetConnection]) {
case NotReachable:
{
_status.text = @"No network";
NSLog(@"No internet connection");
}

case ReachableViaWiFi:
_status.text = @"Datalink OK";
NSLog(@"Connectivity via WiFi available");
break;

case ReachableViaWWAN:
_status.text = @"Datalink OK";
NSLog(@"Connectivity via cellular network available");
break;

default:
_status.text = @"Unknown";
NSLog(@"Status unknown");
break;
}
}