开发者

Change iPhone settings from an app

开发者 https://www.devze.com 2022-12-09 15:30 出处:网络
Does anyone knows how to change the iPhone settings from interior of an app? For example: close the WiFi, disable 3G, change 开发者_运维技巧the sound volume and so on?

Does anyone knows how to change the iPhone settings from interior of an app? For example: close the WiFi, disable 3G, change 开发者_运维技巧the sound volume and so on?

Apple is changing settings trough an app: Settings.app. It means that it's possible, I just don't know how.


Apple can do it in her Settings.app indeed.

Because of limitations of the iPhone SDK, some API's are not made public so you can't do everything Apple is able to do within her own OS. However, you can let the user adjust the main volume from your application, using the MPVolumeView class.


All applications written with the public SDK are sandboxed. They only have access to the properties and data which Apple deems feasible to use within that sandbox. Some of the examples you list are possible and some aren't.

Apple can perform these operations within their own applications since they don't use the public SDKs to write their applications - they use an internal SDK which has more functionality than the external one. They're not too worried about Apple employees hacking the phone and getting all your data off the phone.

Most of us wish that Apple could migrate more things to the public APIs (and they often do) but the reality is that the sandbox environment is carefully guarded. I wouldn't hold my breath to expect Apple to move all your examples over. You could always file a radar bug and let them know what you want - it's one way to have your voice heard.

0

精彩评论

暂无评论...
验证码 换一张
取 消