views:

581

answers:

1

The iphone supports a means of defining your application's settings such that it will automatically create a UI in the Settings app. I want to also allow the user to edit the application settings within the application but it'd be nice to reuse the same UI that is automatically created.

See: Application Settings

Is there a way to have your application display the settings using the same UI that the Settings application does?

+4  A: 

No there is not a way to reuse the UI.

There is, however, a way to reuse the data. Settings.app will put the settings in NSUserDefaults under the keys specified in your Settings.bundle plist file. You can alter those values in your app, then switch to Settings.app and see that it will have changed to reflect your new values. This is really nice if you want to allow the user to edit settings in the app (if that's what they're used to) or in Settings.app (if that's what they're used to).

EDIT #1

You may want to look at this thread. There is a library called mySettings that would make building this easier.

EDIT #2

There are a couple libraries available now that do this:

Dave DeLong