简体   繁体   English

如何以编程方式更改iPhone设置

[英]How to programmatically change iPhone settings

It is possible to change iPhone settings from an application? 可以从应用程序更改iPhone设置吗? I want to change settings like enable/disable WIFI, enable/disable vibrations, change ring tone, enable/disable bluetooth, call forwarding, mail accounts, etc. I want to be able to change all settings programmatically. 我想更改设置,如启用/禁用WIFI,启用/禁用振动,更改铃声,启用/禁用蓝牙,呼叫转移,邮件帐户等。我希望能够以编程方式更改所有设置。 I would appreciate some sample code. 我会很感激一些示例代码。

Thanks for any help. 谢谢你的帮助。

除非您的应用程序是在越狱手机上运行,​​否则您无法执行此操作。

You can do some of these items programatically on a non-jailbroken phone. 您可以在非越狱手机上以编程方式执行其中一些项目。 Toggling Bluetooth is discussed here, and it's very easy to get working. 这里讨论切换蓝牙,它很容易上班。 Programmatically turn on bluetooth in the iphone sdk? 以编程方式打开iphone sdk中的蓝牙?

I am not sure about the other items. 我不确定其他项目。 Of course you cannot submit this code to the app store, but for personal use it can be very handy. 当然,您无法将此代码提交到应用商店,但对于个人用途,它可以非常方便。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM