How to check if wifi option is enabled on the iPhone or not (but maybe iPhone not connected to one of the wifi net).
Found a great line of code for this. Add the Reachability class to your project and then you can do this:
BOOL isConnectedProperly = ([[Reachability reachabilityForInternetConnection] currentReachabilityStatus] == ReachableViaWiFi);