O'Reilly logo

iPhone Programming: The Big Nerd Ranch Guide by Joe Conway, Aaron Hillegass

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

25. Settings

Many applications include preferences that users can customize. Whether users are picking the size of the text or storing passwords, there is a standard way of enabling iPhone application preferences. In this chapter, you will use the NSUserDefaults class to add a preference to your Nayberz application. This preference will specify the message that you publish in your net service (Figure 25.1).

Figure 25.1. Nayberz Settings pane

image

Settings Bundle

In the top-level directory of an iPhone application bundle, the filename Settings.bundle is reserved for a directory to contain the application’s preference settings. To add preferences to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required