Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Share this Page URL

Chapter 26. Core Animation > Adding Basic Animation

Feedback: 0 Comments on this Section

Adding Basic Animation

The gag application is working pretty well, but it would be nicer if instead of an instant teleportation of the button, we animated it to make it slide away. With Cocoa’s Core Animation facilities, this task is easy.

To add animation to the ButtonGag application, simply edit one line of code in GagView.m.

You are currently reading a free preview of this book.


Sign up for a
Safari Library subscription
to access Rough Cuts.


Subscribe Now