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.

Getting ready

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:

  1. Add a reference to the CoreImage.framework to your project.
  2. Select the ViewController.xib files from the Project Navigator window.
  3. From the Object Library window, drag a UIImageView object onto the view.
  4. 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.
  5. Next, create the outlet for this UIImageView ...

Get Xcode 4 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.