Applying color effects using Core Image
In this recipe we will take a look at how we can use Core Image to apply color effects to an image.
Following on from our previous recipe, create a new Single View Application, and name it ColorEffectsExample.
How to do it...
To begin, follow these simple steps as outlined in the following order:
- Add a reference to the
CoreImage.frameworkto your project.
- Select the
ViewController.xibfiles from the Project Navigator window.
- From the Object Library window, drag a
UIImageViewobject onto the view.
- Resize the control accordingly so that it takes up the entire area of the screen, and set the image view Mode to Scale to Fill from within the Attributes Inspector tab.
- Next, create the outlet for this