Skip to Main Content
Professional iPhone® and iPad™ Application Development
book

Professional iPhone® and iPad™ Application Development

by Gene Backlin
November 2010
Intermediate to advanced content levelIntermediate to advanced
600 pages
14h 21m
English
Wrox
Content preview from Professional iPhone® and iPad™ Application Development

Chapter 9. Application Preferences

WHAT'S IN THIS CHAPTER?

  • The role of the Settings.bundle file in processing application preferences

  • How to read from and write to the application preferences

  • Using child panes to define a hierarchy of application preferences

Applications can be configured through preferences. In desktop applications, preference activity is coded as part of the application itself. With the iPhone and iPad, these settings are not part of the actual applications; rather, they are found in a separate Settings application.

In order to integrate with the Settings application, you must include a Settings.bundle file in your application. This bundle works directly with the Settings application, which is responsible for maintaining the values that are provided to your application. At runtime, your application can easily retrieve these settings.

In this chapter you develop two applications that store information that can be modified by the standard Settings application (found on the iPhone and iPad devices).

The first application will retrieve first name, last name, and phone number information that is located in the Settings.bundle and display the values in a Table view.

The second application will retrieve first name, last name, and bank account type information that is located in the Settings.bundle and display the values in a Table view. What makes the second application different is that the bank account information is stored in a separate settings page file, demonstrating the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Professional Visual Studio® 2010

Professional Visual Studio® 2010

Nick Randolph, David Gardner, Michael Minutillo, Chris Anderson
Navigating the Metaverse

Navigating the Metaverse

Cathy Hackl, Dirk Lueth, Tommaso Di Bartolo
Navigating the Metaverse

Navigating the Metaverse

Cathy Hackl, Dirk Lueth, Tommaso Di Bartolo, John Arkontaky, Yat Siu

Publisher Resources

ISBN: 9780470878194Purchase book