Catransition transition Animations

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.