Tuesday, March 16, 2010

iPhone SDK - Easily check for an internet connection

So, I have found that the simplest way to check for an internet connection in the iPhone SDK is not via the "Reachability" classes that are provided through the Apple iPhone example projects.

The easiest is as demonstrated through my video tutorial:



Simply put, you can create an NSString from a URL (in this case it is http://google.com), and check to see if that string then exists or not.

Thanks for visiting my blog!

No comments:

Post a Comment