title: iOS Detect 3G or WiFi
body: <p>I am not sure if this is possible, but I have this scenario.</p>
  
  <p>I have a website displayed in my UIWebView which has the link set in a UISegmentedController.
  They website can detect if you are on wifi or on the 3g network.</p>
  
  <p>Now the segmented controller points to 2 different pages:
  1 - An iPhone friendly login screen
  2 - The home page, once you are logged in.</p>
  
  <p>Now here is the question:</p>
  
  <p>Can I program my application to detect whether it is to WIFI or 3G (I know you can do this), but then based on the answer go to segment 1 or 2</p>
  
  <p>Kind of like this:</p>
  
  <pre><code>if (iPhone device is on 3g) {
      Go to Segment 1;
  } else {
      Go to Segment 0;
  }
  </code></pre>