1. The way to jump from one view controller to another is to set the
Catransition *animation = [[Catransition alloc]init];
Animation.duration = 1;
Animation.type = @ "Pagecurl"; Cube Rollover Effect
Animation.subtype = @ "Frombottom"; Start at the bottom
[Self.view.window.layer addanimation:animation Forkey:nil];
If you encapsulate the extension method, you can call the method directly instead of the top 5 rows
[Self.view.superview addtansitionanimationtype:transtiontypecube duration:1 Direction: Transitiondirectionfrombottom];
1.1 Transition Effect
Fade//Crossfade Transitions (transition direction not supported)
Push//New view roll out the old view
Movein//New view above the old view
Reveal//Move the old view away to show the new view below
Cube//Cube Rollover effect
Oglflip//Upper and lower left and right rollover effect
Suckeffect//shrinkage effect, such as a piece of cloth is pumped away (not support transition direction)
Rippleeffect//Drip effect (transition direction not supported)
Pagecurl//Page UP effect
Pageuncurl//Page DOWN effect
Camerairishollowopen//Camera lens open effect (transition direction not supported)
Camerairishollowclose//Camera lens Close effect (no transition direction is supported)
1.2 Flip Direction
Fromleft//From left
Fromright//From the right
Fromtop//From top
Frombottom//From bottom
In the use of the process, for the convenience of the UIView, we can extend the class, the use of flip effect encapsulated as enumeration constants, convenient for us to quickly find, call the appropriate method can be quickly set
If the calling method is:
-(void) Addtansitionanimationtype: (transtiontype) Type duration: (nstimeinterval) Duration direction: ( transitiondirection) direction;
Class Extension Example: see-Uiviewanimation
UI-View controller Jump Another view controller effect summary