title: Detect Airplane Mode on iOS in Objective-C
body: <p>When accessing Safari or Email on the iPhone (at least 7.1) if airplane mode is on, an alert pops up that says;</p>
  
  <blockquote>
    <p>Turn Off Airplane Mode or Use Wi-Fi to Access Data.</p>
  </blockquote>
  
  <p>The two choices are Settings which takes you to Settings or OK which just cancels the alert.</p>
  
  <p>I would like to have something similar in my app so people know they can't access the server.</p>
  
  <p>However, the answers I have read on Stack Overflow suggest there is no way for 3rdparty apps to check if airplane mode is enabled.  Note, this is not the same as just checking if Internet is enabled because it takes user directly to Settings screen if airplane mode is the issue.</p>
  
  <p>How to implement this functionality in iPhone?</p>