14 Camera

In this chapter, you are going to add photos to the Homepwner application. You will present a UIImagePickerController so that the user can take and save a picture of each item. The image will then be associated with an Item instance and viewable in the item’s detail view (Figure 14.1).

Figure 14.1  Homepwner with camera addition

Homepwner with camera addition

Images tend to be very large, so it is a good idea to store images separately from other data. Thus, you are going to create a second store for images. ImageStore will fetch and cache images as they are needed.

Displaying Images and UIImageView

Your first step is to have the ...

Get iOS Programming: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.