Little Fat says 5------The use of catransition

Source: Internet
Author: User

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

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.