Based on our design, we know that we are going to need to apply filters to a photo. Instead of just creating an array with filters, we are going to use a plist
to load in a set of filters that we want. You can find the FilterData.plist
file inside this chapter's asset folder. Drag and drop this file into the Model folder that is inside the Review
folder. Make sure that Copy items if needed is checked, and then hit Finish.
Let's take a look at the plist
and see what it contains:
This list only has 10 of over 170 filters and effects that you can use. If you would like to see a full list of filters, you can find the list at http://tinyurl.com/coreimage-ios. Feel free to add, remove, or update any filters.
Now that we have seen what our plist
looks like, we need to create a Model that represents this data. We also need to create a Manager class to manage our items. Let's create the Model first:
Right-click the
Model
folder in theReview
folder and select New File.Inside the...