CATransition *animation = [CATransition animation];
[animation setDuration:0.5];
[animation setType:kCATransitionPush];
[animation setSubtype:kCATransitionFromLeft];
[animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
self.view.center = CGPointMake(410, 205);
[[self.view layer] addAnimation:animation forKey:@"SwitchToNoti"];
Imagination is more important than knowledge. Knowledge is limited, whereas imagination embraces the entire world stimulating progress, giving birth to evolution.
Wednesday, 21 November 2012
Animation with Push Left and Right
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment