title: iOS: how to query WiFi state
body: <p>Is it possible to query WiFi state (enabled/disabled) on iOS programmatically? The query should return true when WiFi is enabled and device is not connected to any network.</p>
  
  <p><strong>EDIT:</strong> I am aware of the functionality provided by <code>Reachability</code> class and as far as I understand it does not recognize enabled but not connected state of WIFI. I.e. the following code will return <code>NetworkStatus</code> <code>NotReachable</code>, which is not what I need.</p>
  
  <pre><code>Reachability* r = [Reachability reachabilityForLocalWiFi];
  NetworkStatus ns = [r currentReachabilityStatus];
  </code></pre>