O'Reilly logo

Head First iPhone and iPad Development, 2nd Edition by Dan Pilone, Tracey Pilone

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 6. Saving, Editing, and Sorting Data: Everyone’s an editor...

image with no caption

Displaying data is nice, but adding and editing information is what makes an app really hum.

DrinkMixer is great—it uses some cell customization, and works with plist dictionaries to display data. It’s a handy reference application, and you’ve got a good start on adding new drinks. Now it’s time to give the user the ability to modify the data—saving, editing, and sorting—to make it more useful for everyone. In this chapter, we’ll take a look at editing patterns in iOS apps and how to guide users with the Nav Controller.

Sam is ready to add a Red-Headed School Girl...

Note

A new drink at the Lounge

Sam went to try DrinkMixer with the new add view and ran into problems right away.

image with no caption
image with no caption

We have a problem with our view, since we can’t get to some of the fields.

...but the keyboard is in the way

We’re back to the keyboard problem we saw earlier with InstaEmail. When Sam taps on a control, it gets focus (becomes the first responder) and asks iOS to show the keyboard. Generally, that’s a good thing. However...

image with no caption

Brain Barbell

How did we deal ...

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