This is the final workshop in the App Preferences Workshop series. You’ll design and code the Basic Prefs tab. It enable the user to view and update preferences you’ve set up in the setting bundle’s Root.plist file, within the application itself.
Start by designing the SecondViewController’s view to look like what’s shown in the image below. The table to the right of the image, shows what controls and attributes to modify.
Next, add code shown below in the SecondViewController files.
SecondViewController.h | SecondViewController.m | ||||
---|---|---|---|---|---|
|
|
Connect the user interface’s controls in Interface Builder then run the application. These images shows what the SecondViewController nib file’s user interface looks like in the iPhone Simulator.
![]() |
![]() |
![]() |