Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

304599

Suspended
Original poster
Apr 14, 2009
4
0
Hello all,

I was going through the SDK last night and I couldn't find anything that would allow me to switch off and on the Wifi, Bluetooth or 3G radio's in my code. I'd like to be able to create a switch in my interface that could call some code to do this. Similar to what the Settings program does in the iPhone OS.

Anyone have any thoughts on if this is possible? :apple:

thanks for reading,

S
 

304599

Suspended
Original poster
Apr 14, 2009
4
0
I wouldn't have done it automatically, it would have been implemented via a view/switch button providing the user with ultimate control.

What about checking the status of the radios? i.e. are they currently enabled, disabled?
 

304599

Suspended
Original poster
Apr 14, 2009
4
0
Thanks, I'll check it out - I wonder if SDK 3.0 implements any of what I'm asking for.
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
Thanks, I'll check it out - I wonder if SDK 3.0 implements any of what I'm asking for.

Basically no. User settings are handled through the settings app. Apple don't want developers to take control of this and spread the setting throughout the system.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.