O'Reilly logo

iPhone Programming: The Big Nerd Ranch Guide by Joe Conway, Aaron Hillegass

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

13. Camera and UlPopoverController

In this chapter, you’re going to use UIImagePickerController, a subclass of UIViewController, to add photos to the Homepwner application. You will present a UIImagePickerController so that the user can take and save a picture of each possession. The image will then be associated with a Possession instance, stored in an image cache, and viewable in the possession’s detail view. Then, when the insurance company demands proof, the user has a visual record of owning that 70″ HDTV.

Figure 13.1. Homepwner with camera addition

image

ImageCache: a Singleton

First, you are going to create an image cache to hold all the pictures ...

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