After adding the code that I showed the following is what I do in my view controller's viewDidLoad:
Code:
// Check if the network is reachable and turn off the controls if not
if (! [NetReachability networkIsReachable:NO])
{
mStatusLabel.text = NSLocalizedString(@"WiFi is not available", @"no wifi status text in Pull/Push Connectivity");
mStatusLabel.textColor = [UIColor redColor];
mGetFileButton.enabled = NO;
mNetworkIsReachable = NO;
}