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

Animating UIViews

UIView animations use what are known as animation blocks. Everything between the beginAnimations: context : and commitAnimations method calls is animated based on the animation settings you declare within the block. For instance, if you wanted to fade out an image view along with the label, all you have to do is add it to the animation block and set its alpha value to zero.
386
DEFINITION
An animation block defines how a view should animate. A UIView animation block begins by calling beginAnimations: context: and ends by calling commitAnimations. The lines of code between these two methods describe the animation, such as the ...

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