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).
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 ...