June 2011
Intermediate to advanced
590 pages
19h 31m
English
For practice with CAKeyframeAnimation, you are going to make the time label grow and shrink to give it a bouncing effect (Figure 23.6).
Figure 23.6 Current time mid-bounce

Remove (or comment out) the spin animation and replace it with a nice bounce. The method showCurrentTime: should look like this:
- (IBAction)showCurrentTime:(id)sender { NSDate *now = [NSDate date]; static NSDateFormatter *formatter = nil; if (!formatter) { formatter = [[NSDateFormatter ...Read now
Unlock full access