Has anyone found a halfway decent guide to implementing Reachability on iOS4? I have yet to find one.
Thanks in advance!
I have implemented Reachability like this. Download https://developer.apple.com/iphone/library/samplecode/Reachability/index.html and add Reachability.h and .m to your project. Add the SystemConfiguration framework to your project. #import "Reachability.h" where you want to use it. Use this code.
When you want to check for reachability...
Here is the example project that I made. http://dl.dropbox.com/u/3656129/ReachabilityExample.zip
I think the best way to check the availability of host address is by checking the results of NSURL Request.
Using this bit of Code, if your device cannot reach the provided URL, it provides some output to the error variable, if it can access the URL Request, error is Nil.
Reachability gives a positive output even if you URL packets can route out from your device and never reach the host server.