title: iPhone SDK Internet connection detection
body: <p>I'm working on an <a href="http://en.wikipedia.org/wiki/IPhone" rel="noreferrer">iPhone</a> application that makes a few calls to web services. I posted this application on the Apple store but it got rejected (and rightly so) since there was no error message displayed to the user if no Internet connection is available. Since obviously the application would not work without it.</p>
  
  <p>So I just wanted to know how to best achieve this? I'm guessing something needs to go in the <code>viewDidLoad</code> method that will throw an alert box saying something like "You need an Internet connection to use this application".</p>
  
  <p>Any ideas would be appreciated.</p>