The type attribute of the Catransition 1. #define定义的常量 kcatransitionfade crossfade Transition Kcatransitionmovein New view is moved above the old view Kcatransiti OnPush New View roll out the old view kcatransitionreveal move the old view away, showing the new view below 2. A string representation of the Pagecurl up one page Pageuncurl Turn down one page rippleeffect drip effect suckeffect shrinkage effect, such as a piece of cloth was pumped away cube cube effect OGLFL IP up/down rollover effect-(void) MyCAnimation1 {catransition *animation = [catransition animation]; Animation time animation.duration = 1.0f; Display mode, slow at beginning and end animation.timingfunction = uiviewanimationcurveeaseinout; Transition effect Animation.type = Kcatransitionmovein; Transition direction Animation.subtype = kcatransitionfromtop; Add animation [Imageview.layer addanimation:animation Forkey:nil]; }-(void) MyCAnimation2 {catransition *animation = [catransition animation]; Animation time animation.duration = 1.0f; Display mode, slow at beginning and enD animation.timingfunction = uiviewanimationcurveeaseinout; Whether to remove animation.removedoncompletion = NO when the animation finishes executing; Transition effect Animation.type = @ "Pagecurl"; Transition direction Animation.subtype = kcatransitionfromright; Temporarily do not know, feel with progress together, if not add, progress seems to have no effect animation.fillmode = kcafillmodeforwards; The animation stops (as a percentage of the overall animation). animation.endprogress = 0.7; [Imageview.layer addanimation:animation Forkey:nil]; }-(void) MyCAnimation3 {catransition *animation = [catransition animation]; Animation time animation.duration = 1.0f; Display mode, slow at beginning and end animation.timingfunction = uiviewanimationcurveeaseinout; Transition effect Animation.type = @ "Pageuncurl"; Transition direction Animation.subtype = kcatransitionfromright; Temporarily do not know, feel with progress together, if not add, progress seems to have no effect animation.fillmode = kcafillmodebackwards; The animation starts (as a percentage of the overall animation). Animation.startprogress = 0.3; [Imageview.layer Addanimation:animatIon Forkey:nil]; }
Little Fat says 5------The use of catransition