Implementing the Camera

When you’re preparing a shopping list, it would be great if you could take a photo of that obscure brand of coffee you love so much. When you’re at the store and can’t remember what it is called, you could then simply refer to the photo. The ability to take a photo will be added to the existing Item view. When an item has a photo, it will be shown both on the Item view and in the table views of the Prepare and Shop tabs. To take a photo, a new button is required on the Item view, and an Image view is needed to display it.

Update Grocery Dude as follows to implement the camera button and Image view:

1. Download and extract add_photo icons from the following URL: http://www.timroadley.com/LearningCoreData/Icons_add_photo.zip ...

Get Learning Core Data for iOS: A Hands-On Guide to Building Core Data Applications 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.