When my app starts, I want to check whether the net connection is avaliable or not. And if not I want to show an alert message. How can I check it?
+3
A:
Check out Apple's Reachability example: http://developer.apple.com/iphone/library/samplecode/Reachability/index.html. It will show you everything you need on how to detect the network state of the device.
refulgentis
2009-12-21 10:35:24
Thanks, that was very helpfull and I succeeded in what I was trying to do.
wolverine
2009-12-22 12:18:08