I have an app that uses Apples reachability code. When I tab out of the app, turn on airplane mode, go back into the app, I correctly get a message that says no connection is available. If I go back out turn OFF airplane mode and go back into the app, I STILL get the message that no connection is available. The specific problem code is this:
NetworkStatus status = kNotReachable;
if (SCNetworkReachabilityGetFlags(reachabilityRef, &flags))
{
status = [self networkStatusForFlags: flags];
return status;
}
I get inside the if statement and flags ends up being 0 (kSCNetworkReachabilityFlagsTransientConnection
). What does that mean exactly? Has anyone experienced this and does anyone know a work-around or fix? Been playing with it for hours...