O'Reilly logo

The Complete Idiot's Guide® To iPad and iPhone App Development by Troy Brant

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

Pushing View Controllers

Your next goal is to push a new ProfileViewController when one of the view buttons is tapped. To achieve this goal, add the code below to CelebritiesViewController.m:
298
299
Because both view buttons point to the same action method, the tag property is used to tell which one was tapped. Note that you haven’t initialized the first User and secondUser objects yet, but for now they are set to nil, which is perfectly fine while you get the navigation controller working.
Test your changes by running your project in the simulator. ...

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