My app has some social elements to it. Primarily, posting to Facebook and tweeting. When the user touches either action, I first wanted to check their Internet connection and wait on the result. Thanks Lerg for help.
To use, you pass several arguments:
The URL to check, and four function callbacks for unreachable, reachable via Wifi, via Cell, and viaOther.
The calling code looks like this for example:
1
| DataNet.CheckURL("twitter.com",CheckConnection,doTweet,requireOK2Tweet,requireOK2Tweet) |