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 6. While Your Application Is Running

In This Chapter

  • Seeing how applications actually work

  • Getting a handle on how nib files work

  • Following what goes on when the user taps your application icon

  • Managing events

  • Creating an app with a view

  • Remembering memory management

  • Knowing what else you should be aware of at runtime

Taking a peek at the iPhone application architecture (Chapter 2) and working through the steps of creating the user interface for an application (Chapter 5) are all fine and dandy, but at some point, you have to add some code — and to do that, you need an additional frame of reference: You need to know how all this stuff works at runtime.

Uncovering the mysteries of runtime is the goal of this chapter.

Okay, if you can't wait to code, then by all means skip to the next chapter. Honestly, if I were you (or me without benefit of hindsight), I'd be itching to do the same thing. But you'll probably run into trouble, just as I did, if you don't take some time beforehand to examine how the objects work together to deliver the user's experience of the application.

Application Anatomy 101 — The Life Cycle

The short-but-happy life of an application begins when a user launches it by tapping its icon on the Home screen. The system launches your application by calling its main function.

The main function does only three things:

  • Sets up an autorelease pool.

  • Calls the UIApplicationMain function.

  • At termination, releases the autorelease pool.

To be honest, this whole main function thing is ...

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