O'Reilly logo

Application Development in iOS 7 by Kyle Begeman

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

Coding the detail view

When pushing the detail view, we will pass the food item dictionary as a property so that we can display the data related to that food item in the detail view. To do this, let's add a property. Switch to FoodDetailViewController.h, and beneath our IBOutlets, add the following property:

@property (strong, nonatomic) NSDictionary *foodItem;

Creating blurred images

Now, we can pass a food item to this view controller. Next, we want to set the background image of the detail view. For our application, we are going to use our food image itself as the background image. Before we set the image, we will blur it and apply a dark tint to create a nice blurred image effect.

In order to do this, we will be using a UIImage category provided ...

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