Subtype the direction of the transition animated animation effect
Animation effect of type transition animation
Kcatransitionfade Cross-fade transitions
Kcatransitionmovein New view above old view
Kcatransitionpush New View roll out the old view
Kcatransitionreveal move the old view away to show the new view below
Private API is not recommended to use Apple does not provide maintenance and it is possible that app audits do not pass
Pagecurl up one page
Pageuncurl down one page
Rippleeffect drip Effect
Suckeffect shrinkage effect as a piece of cloth is pumped away
Cube Cube Effect
Oglflip up/down rollover effect
Initialization: catransition *trans = [catransition animation];
Select animation effect: trans.type [email protected] "Oglflip" (the private API animation effect needs to be written as a string @ "")
System-given method does not need: Trans.type = Kcatransitionpush
Set the duration of the animation: Trans.duration = 2;
Add the animation to the image: [Image.layer addanimation:trans forkey:@ "Tran"];
Two. Animation group of the navigation controller
Nextviewcontroller *next = [[Nextviewcontroller alloc]init];
Catransition *animation = [catransition animation];
Animation.type = @ "Suckeffect";
Animation.subtype = Kcatransitionfromleft;
Animation.duration = 1;
[Self.navigationController.view.layer addanimation:animation forkey:@ "animation"];
If you use a custom transition animation, you must disable the system-given animation
[Self.navigationcontroller Pushviewcontroller:next Animated:no];
Catransition transition Animations