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

Start Animating

You will do most of your experiments in the viewDidAppear: method of the AnimotionViewController. In fact, let’s go ahead and look at some code that will move the view across the screen:
400
401
Add the previous code to your own project, run it, and see what it looks like. Perhaps it would be nice for it to start just a bit later so you can see where the toy view begins. You can achieve this by adding a delay using setAnimationDelay:. Add the following code to your animation block to delay the slide across the screen by one second:

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