AppPrefs

Last Revision:
Version 1.6, 2013-04-11
Demonstrates extracting and registering the default values for all settings defined in the Settings bundle; Adopted Storyboards and ARC; Adopted the latest Objective-C conventions and best practices; Upgraded to build against the iOS 6 SDK.
(Full Revision History)
Build Requirements:
iOS 6.0 SDK or later
Runtime Requirements:
iOS 5.0 or later

Demonstrates how to display your app's user configurable options (preferences) in the "Settings" system application. A settings bundle, included in your application’s bundle directory, contains the information needed by the Settings application to display your preferences and make it possible for the user to modify them. The Settings application saves any configured values in the defaults database so that your application can retrieve them at runtime.

This sample also shows how to dynamically update it's UI when its settings are changed while the app is in the background by listening for the NSUserDefaultsDidChangeNotification.