20
Camera and Photo Library
In the previous chapter, you created the RatingView class and added it to the Add New Journal Entry and Journal Entry Detail screens.
In this chapter, you will complete the implementation of the Add New Journal Entry screen by adding a way for the user to get a photo from the camera or photo library, which they can then add to a new journal entry. You’ll start by adding a tap gesture recognizer to the image view on the Add New Journal Entry screen and configure it to display an image picker controller instance. Then, you will implement methods from the UIImagePickerControllerDelegate protocol, which allows you to get a photo from the camera or photo library and make the photo smaller before it is saved to the journal ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access