iOS 4

Introducing notifications (iOS 4)

As we mentioned in topic 1, there’s one other way that a program can learn about events: through notifications. When directly manipulating events or actions, as you have throughout this topic, individual objects receive events because the events occurred in their view, because the events occurred in a subview, or because the events occurred in […]

The tab bar view controller (iOS 4)

When we started our look at view controllers in topic 5, we promised that we’d return to the more advanced view controllers that manage several pages of content at once. That’s the purpose of this topic: to introduce you to the final fundamental building block of iOS that allows you to build complex multipage applications. […]

The navigation controller (iOS 4)

The navigation controller is probably the most-seen user interface item on the iOS device. Whenever you have a stack of view controllers in which you can move up and down through the hierarchy, that’s the navigation controller at work. It appears in the Text, Calend ar, P ho tos, and Notes iPhone utilitie s, to […]

Using the flipside controller (iOS 4)

To create a flipside controller on iPhone, choose the Utility Application template when you start a new project. Please note that this template is only available to the iPhone platform. It creates a small hierarchy of objects, as shown in figure 7.8. The flipside controller contains three view controllers and two views. Each of the […]

The split view controller (iOS 4)

The split view controller is an iPad-specific view controller that allows you to separate content into different panes. Although you can implement it a few ways, by far the most common is to have a UITableView on the left and a UIView on the right. Because the split view is made of two views that […]

Popover and modal view controllers (iOS 4)

Technically, a modal view refers to a te mporary view that’s placed on top of all the elements of an existing view and then later dismissed. A modal view controller is a view controller that manages such a modal view. The iPhone camera is an example of a view controller that has been presented modally. […]

Combining view controllers in universal applications (iOS 4)

You learned how to create view controllers inside your application or start an application by using the template under iOS projects. How do you combine these view controllers inside your application for both the iPhone and iPad? In this section, we will talk about how to design universal applications for both the iPhone and iPad […]

Accepting user actions (iOS 4)

In the preceding topics, we offered a tutorial on the most important features of the SDK: we outlined Objective-C and iOS and explained Xcode, we examined view controllers of all types, and we looked at the standard event and action models for the iPhone and iPad. In the process, we tried to provide the strong […]

Maintaining user preferences (iOS 4)

Preferences are the way an iPhone or iPad program maintains user choices, particularly from one session to another. They’re a way to not only accept user input but also save it. You can use your own programmatic interface to maintain these preferences, or you can use the Settings interface provided in the iOS SDK. If […]

Opening files (iOS 4)

When we talked about bundles earlier in this topic, you saw how the iPhone and iPad arrange their internal information for programs. That arrangement becomes vitally important when you’re trying to access files that you’ve added to a project. Fortunately, for the iPhone, you can look at how your program’s files are arranged when you’re […]