Some common properties and methods of Coreanimation core animation

Source: Internet
Author: User

1. Common Properties:

Frame Bounds Center Alpha Transition Transition Transform animation effect

2. Common methods:

+ (void) Setanimationdelegate: (id) delegate;

+ (void) Setanimationwillstartselector: (SEL) selector; When the animation is finished, the selector of the delegate object is executed, and the parameters passed in Beginanimations:context: are passed into the selector

+ (void) Setanimationdidstopselector: (SEL) selector; When the animation ends, the selector of the delegate object is executed, and the parameters passed in Beginanimations:context: are passed into the selector

+ (void) Setanimationduration: (nstimeinterval) duration; Duration of the animation, in seconds

+ (void) Setanimationdelay: (nstimeinterval) delay; Animation delays delay seconds before starting

+ (void) Setanimationstartdate: (NSDate *) StartDate; Start time of the animation, default to now

+ (void) Setanimationcurve: (Uiviewanimationcurve) curve; Rhythm Control for animations (transitions)

+ (void) Setanimationrepeatcount: (float) repeatcount; Number of repetitions of an animation

+ (void) setanimationrepeatautoreverses: (BOOL) repeatautoreverses; If set to Yes, the effect of each repetition of the animation is the opposite of the previous one

+ (void) Setanimationtransition: (uiviewanimationtransition) Transition Forview: (UIView *) View cache: (BOOL) cache; Sets the transition effect of the view, transition specifies the transition type, and the cache setting yes represents the use of the view cache, better performance

Some common properties and methods of Coreanimation core animation

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.