View Full Version : How to test for any internet connection? 3g wi-fi edge

Sep 2, 2008, 07:18 PM
Is there simple quick and easy ... lets say 1-3 lines of code to test for an internet connection on the iphone?

or even better would be to have a function triggered right when internet connection is made, and right when it is disconnected.

also feel free to post more complex ways if no easy ways exist.

Sep 3, 2008, 02:20 AM
Look at the Reachability sample.