Chapter 4. Developing the Flipside Controls

In This Chapter

  • Loading and saving user preferences

  • Adding a Constants.h file

  • Connecting user preferences to the Settings app

  • Adding a Settings bundle for user preferences

  • Adding outlets to the view controller

  • Connecting interface objects to your code in Interface Builder

As you recall from Chapter 1 of Book I, Apple considers applications that perform simple, highly defined tasks as utility apps. The Weather app, for example, deals only with the weather data. One of the characteristics of utility apps is that the user can change aspects of it — in Weather, for example, the user can add and change the cities that Weather shows the weather data for.

The DeepThoughts app is considered a utility, as it performs a simple, highly defined task. With DeepThoughts, the idea is to enable the user to enter his or her own words for the falling words animation (which I show you in Chapter 3 of this minibook), as well as change the speed of the animation. For these functions to work, you need to enable the app to save data entered by a user for the next time he or she fires up the app. In this chapter, I tackle how to get your app to save data entered by the user, and then you set up the Flipside View controls for users to enter the data.

Respecting User Preferences

Most people these days have spent enough time around computers that they know what I mean when I throw the term preferences around. On your desktop, for example, you can set preferences at the system ...

Get iPhone® Application Development All-In-One For Dummies® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.