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.
I’ve had a look at apples Reachability sample code, but that just makes my code error like crazy when I try and implement (because it’s built for iOS 4).
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.
I’ve adapted Apple’s
Reachabilityclass for using with ARC, try it.