iPhone SDK Internet connection detection
Posted
by givp
on Stack Overflow
See other posts from Stack Overflow
or by givp
Published on 2009-02-27T20:39:10Z
Indexed on
2010/03/16
11:06 UTC
Read the original article
Hit count: 382
I'm working on an iPhone application that makes a few calls to web services. I posted this application on the Apple store but it got rejected (and rightly so) since there was no error message displayed to the user if no Internet connection is available. Since obviously the application would not work without it.
So I just wanted to know how to best achieve this? I'm guessing something needs to go in the viewDidLoad
method that will throw an alert box saying something like "You need an Internet connection to use this application".
Any ideas would be appreciated.
© Stack Overflow or respective owner