O'Reilly logo

Head First iPhone and iPad Development, 3rd 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 2. Basic iOS Patterns: Building from scratch

image with no caption

Now that you’ve gotten your feet wet, it’s time to start fresh. You should have a good idea of the tools you’ll be working with and how to get around Xcode a bit. Now it’s time to dig a little deeper and start your own project. How do you set up an iOS project, how do the pieces of the app really work together, and what are the interaction patterns you can count on? Turn the page, ‘cause you’re ready to find out...

iOS apps run full screen, but there’s a lot going on

One of the big things that separates working on an iOS device (i.e., an iPhone or iPad) from desktop or laptop computers is always working in full screen. In fact, when iPhone first came out, there wasn’t any multitasking on the device at all. That has changed, although it’s not multitasking in the sense that desktops do it. The user interacts with one app at a time through a particular view the app is showing on the screen.

Behind the scenes a view is splitting up responsibilities for responding to the user over a couple different pieces, as illustrated below.

image with no caption

Model-View-Controller is a design pattern

Model-view-controller (MVC) is a pattern that is discussed at length in Head First Design Patterns. You see it used a lot with GUI applications, and it’s all over the CocoaTouch ...

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