Q:

iOS set wifi configuration programmatically

I know the SSID and the WPA/WEP of my secure network.
And want to configure programmatically the network in iOS, is it possible ? How ?
Thanks.

A:

This is not possible. Apps are sandboxed, and Apple doesn't have public APIs for configuring wifi networks available. You can provide your network information to the user and instruct them to go to the settings app and set it up, but you can't make the app automatically configure it.
Now if your device is jailbroken, you can do things outside of your sandbox, in which case you could technically do this. In fact when jailbroken, you can do pretty much anything on your device that it's capable of doing. But if you don't want to jailbreak your device, or you don't want to release a jailbroken app, then it's not possible.

