ios4 - Is there a way to turn on wifi on iphone through your app's code? -


I am creating an app using the iPhone SDK 4. What programming does the WiFi on an iPhone / iPod Touch turn on Is there a way to do (especially iOS 4) if it has been locked?

Thanks,
Innovative

I want to be able to turn on WiFi (if it is turned off).

No, you can not override the user's settings for the device.

You can require Wi-Fi by applying the UIRequiresPersistentWiFi key to the app Info.plist file. This will call the system dialog so that the user can ask to activate the wifi, if it is not available.


Comments