O'Reilly logo

Xcode 4 Cookbook by Steven F. Daniel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required