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;
    }
}