- AnimationCurve
- UIViewAnimationCurveEaseIn
- UIViewAnimationCurveEaseInOut
- UIViewAnimationCurveEaseOut
- UIViewAnimationCurveLinear - AnimationTransition
- UIViewAnimationTransitionCurlUp
- UIViewAnimationTransitionFlipFromRight
- UIViewAnimationTransitionFlipFromLeft - 基本框架
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.5];
[UIView setAnimationDelay:0.0];
[UIView setAnimationCurve:UIViewAnimationCurveEaseOut];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp
forView:self.view cache:YES];// Action
[UIView commitAnimations];
- 框架範例二
CATransition *animation = [CATransition animation];
[animation setDuration:0.5];
[animation setType:kCATransitionPush];
[animation setSubtype:kCATransitionFromRight];
[animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
[self.view.layer addAnimation:animation forKey:nil];//do something here
[CATransaction commit];