Some common attributes and methods of CoreAnimation core animation, coreanimation Core

Source: Internet
Author: User

Some common attributes and methods of CoreAnimation core animation, coreanimation Core

1. common attributes:

Frame bounds center alpha Transition transform animation effect

2. Common Methods:

+ (Void) setAnimationDelegate :( id) delegate;

+ (Void) setAnimationWillStartSelector :( SEL) selector; when the animation ends, run the selector of the delegate object and pass the parameters passed in beginAnimations: context: To the selector

+ (Void) setAnimationDidStopSelector :( SEL) selector; when the animation ends, run the selector of the delegate object and pass the parameters passed in beginAnimations: context: To the selector

 

+ (Void) setAnimationDuration :( NSTimeInterval) duration; animation duration, in seconds

 

+ (Void) setAnimationDelay :( NSTimeInterval) delay; animation delay seconds before start

 

+ (Void) setAnimationStartDate :( NSDate *) startDate; animation start time, default: now

 

+ (Void) setAnimationCurve :( UIViewAnimationCurve) curve; animation rhythm control (Transition)

 

+ (Void) setAnimationRepeatCount :( float) repeatCount; number of animation repetitions

 

+ (Void) setAnimationRepeatAutoreverses :( BOOL) repeatAutoreverses; if it is set to YES, the effect of repeated animation execution will be the opposite

 

+ (Void) setAnimationTransition :( UIViewAnimationTransition) transition forView :( UIView *) view cache :( BOOL) cache; set the transition effect of view, transition specifies the transition type, YES indicates that View cache is used, and the performance is good.

 

Related Article

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.