Skip to Content
iPhone® Application Development For Dummies®, 2nd Edition
book

iPhone® Application Development For Dummies®, 2nd Edition

by Neal Goldstein
November 2009
Beginner to intermediate
432 pages
9h 9m
English
For Dummies
Content preview from iPhone® Application Development For Dummies®, 2nd Edition

Chapter 9. Saving Data and Creating a Secret Button

In This Chapter

  • Setting and accessing user preferences

  • Saving data in user preferences

  • Disabling and enabling text fields

  • Responding to user touches

In putting together a great iPhone application, a big part of the whole process involves getting your application to work well from the user interface perspective. Your potential user should be able to scroll the keyboard, work with text fields, enter stuff, delete stuff, admire your fashion sense when it comes to images and background color, and generally have a grand-old time exploring the corners of your app.

Interfaces are important — so important, in fact, that most of the chapters so far in this part deal explicitly with how to set up a user-friendly interface — but interfaces are not the only things in the iPhone app universe. For your application to function as an application, it has to do application-like stuff. For example, it has to be able to save data entered by a user for the next time he or she fires up that app. In this chapter, I tackle how to get your app to save data entered by the user. Again, I'm going to trot out my ReturnMeTo application as a means of imparting this little lesson in data saving.

Wait! That's not all! It occurred to me while I was showing people my handy ReturnMeTo application that whoever found my iPhone could accidently enter a number in the text field — corrupting the crime scene, as it were — and then wouldn't know where to call me. So I decided ...

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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

iPhone™ Application Development for Dummies®

iPhone™ Application Development for Dummies®

Neal Goldstein
Objective-C

Objective-C

Jiva DeVoe

Publisher Resources

ISBN: 9780470568439Purchase book