Search code examples
iphoneioswifi

Is there a way to toggle wifi on and off programmatically in iOS?


I done it for Bluetooth using the code on this link: Is there a way to toggle bluetooth and/or wifi on and off programmatically in iOS?

But I couldn't figure out how to do the same for Wifi. How do you switch the Wifi on/off? Is it possible?


Solution

  • In iOs 2.x you can use some private API to do this, however it does not work in iOS4.x, 5.x. Hope that Apple will public the API for manage Wifi, now it is only used by Setting apple app.