CATransition animation effect and catransition Animation
CATransition * Transition = [CATransition animation];
// Animation time
Transition. duration = 2;
// Set the style
Transition. timingFunction = [CAMediaTimingFunction functionWithName: kCAMediaTimingFunctionEaseInEaseOut];
// Transition effect
Transition. type = @ "rippleEffect ";
// Excessive direction
Transition. subtype = kCATransitionFade;
// Animation start (percentage in the overall animation)
Animation. startProgress = 0.3;
// Add an animation effect
[Self. view. layer addAnimation: animation forKey: @ "CATransition"];
Transition. type style
PageCurl page up
PageUnCurl flip down one page
RippleEffect dripping Effect
SuckEffect contraction effect, such as a piece of cloth being extracted
Cube Effect
OglFlip flip up and down
Transition. subtype Style
KCATransitionFade cross fade transition
The new kCATransitionMoveIn view is moved to the old view.
KCATransitionPush New View releases old view
KCATransitionReveal removes the old view and displays the new view below.