Adding a button to iPhone prefs / settings?

Just wondering if you can add a button similar to the buttons "Clear History", "Clear Cookies", etc. in Safari settings, in your own set of application settings? Breaking through dev docs and can't find any plist specifier for the button, so I'm wondering if this is an internal API for Apple guys?

After you click the button, you will get an action sheet asking if you really want to do this, and then there seems to be some feedback based on user input.

They also noticed that there is a clear button in the Nike + iPod settings, but again, this application can have access to internal APIs that we don’t have.

alt text

+4
source share
3 answers

No, It is Immpossible. The system only supports interaction with values ​​from your application. You cannot run the code from the settings application so that the button is useless.

+8
source

Nike + iPod is the root application. Everything that runs as root can run code from anywhere (with restrictions, the sandbox is b ** ch). If you are interested, you can make a preliminary choice for jailbreak with Theos or iOSOpenDev! This allows you to create a root package that can run button action code.

+1
source

iOSOpenDev , which extends Xcode to develop an iOS jailbreak style project, provides project templates that have checkboxes to include either a simple PreferenceLoader (based on plist) or the full PreferenceLoader package.

0
source

All Articles