How to check in my iOS app if my cellullar data are turned off, and show this alert to navigate to it on settings and turn it on.
For example check the image!
How to check in my iOS app if my cellullar data are turned off, and show this alert to navigate to it on settings and turn it on.
For example check the image!
Apple has some sample code available named Reachability which you can use to see if the Internet is available.
If WiFi is down, you can bring up your own "You can turn on cellular data for this app" UIAlertView.
Well, iOS 5.1 removed the ability to open Settings, so basically you can't do it in iOS >= 5.1
for iOS < 5.1 was something like that
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=General&path=Network"]]