如何通过编程方式更改iPhone设置

时间:2022-03-13 22:55:50

It is possible to change iPhone settings from an application? 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. I would appreciate some sample code.

可以从应用程序中更改iPhone设置吗?我想要改变设置,比如启用/禁用WIFI、启用/禁用振动、更改铃声、启用/禁用蓝牙、呼叫转发、邮件帐户等等。我想要一些示例代码。

Thanks for any help.

感谢任何帮助。

2 个解决方案

#1


7  

You cannot do this unless your application is run on a jailbroken phone.

除非应用程序运行在越狱电话上,否则不能这样做。

#2


2  

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.

其他项目我不太确定。当然,你不能将这些代码提交给应用商店,但是对于个人用户来说,它是非常方便的。

#1


7  

You cannot do this unless your application is run on a jailbroken phone.

除非应用程序运行在越狱电话上,否则不能这样做。

#2


2  

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.

其他项目我不太确定。当然,你不能将这些代码提交给应用商店,但是对于个人用户来说,它是非常方便的。