O'Reilly logo

Beginning iPhone® SDK Programming with Objective-C® by Wei-Meng Lee

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

Chapter 11. Application Preferences

WHAT YOU WILL LEARN IN THIS CHAPTER

  • How to add application preferences to your application

  • How to programmatically access the Settings values

  • How to reset your application's preference settings

If you are a relatively seasoned Mac OS X user, you're likely familiar with the concept of application preferences. Almost every Mac OS X application has application-specific settings that are used for configuring the application's appearance and behavior. These settings are known as the application preferences.

In the iPhone OS, applications also have application preferences. In contrast to Mac OS X applications, however, whose application preferences are an integral part of the application, iPhone preferences are centrally managed by an application called Settings (see Figure 11-1).

Figure 11-1

Figure 11.1. Figure 11-1

The main page of the Settings application displays the preferences of system applications as well as third-party applications. Tapping any setting brings you to another page, where you can configure the preferences of an application.

In this chapter, you learn how to incorporate application preferences into your application and modify them programmatically during runtime.

CREATING APPLICATION PREFERENCES

Creating application preferences for your iPhone application is a pretty straightforward process. The process involves adding a resource called the Settings Bundle ...

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