Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display iphone application settings within your application

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?

like image 704
Dougnukem Avatar asked Jan 24 '23 10:01

Dougnukem


1 Answers

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:

  • InAppSettings
  • InAppSettingsKit
like image 71
Dave DeLong Avatar answered May 20 '23 04:05

Dave DeLong