Summary
In this chapter, you completed the implementation of the Photo Filter screen. You imported FilterData.plist
, a .plist
file containing the filters you want to use, created the FilterItem
class to store filter data, and created the FilterManager
data manager class to read the .plist
file and populate an array of FilterItem
instances. Next, you created a protocol, ImageFiltering
, with a method to apply filters to images. Then, you created the FilterCell
and PhotoFilterViewController
classes in order to manage the collection view cells and the Photo Filter
screen. After that you made the PhotoFilterViewController
class adopt the UIImagePickerDelegate
protocol, and added methods so that you can use photos from the camera or photo library in your app. Finally, you added code to PhotoFilterViewController
to apply a selected filter to a picture.
You are now able to write your own apps that import photos from your camera or photo library, and apply filters to them.
Note that...