title: Checking internet connectivity iOS 5
body: <p>I'm making an app that requires internet connection for certain areas.
  I'm looking for the best way to check internet connection and return an alert view.
  I've had a poke around and can only find ways of doing the above in iOS 4, but the app I'm making is in iOS 5.</p>
  
  <p>I've had a look at apples <a href="https://developer.apple.com/library/ios/#samplecode/Reachability/" rel="nofollow">Reachability</a> sample code, but that just makes my code error like crazy when I try and implement (because it's built for iOS 4).</p>
  
  <p>Edit:
  When I import the reachability.h file into my project I get 10 errors, (of which 6 I can simply fix) and 4 that I'm not sure what to do with.</p>