(original) enumeration uiviewanimationoptions in iOS animations

Source: Internet
Author: User

If this post is transferred out of the "blog Park" Please specify the source (blog Park, small Eight research): http://www.cnblogs.com/xiaobajiu/p/4084747.html

Poor at present, the celestial search does not have any valuable things to facilitate learning, here convenient for beginners.

First, this enumeration belongs to Uiviewanimation. The functions we often use are [UIView animatewithduration:animations:^{} completion:^ (BOOL finished) {}]; and [UIView animatewithduration: animations:^{}]; This function may be used if the animation is slightly more complex, such as the need for composition, and so on:[UIView animatewithduration: delay: options : animations: completion: ^ (BOOL finished) {}]; The first contact friends see a bunch of enumerations may be bored, especially apple that chaotic animation frame of the east, a lump of the West. Again quartz2d, is the core animation and smelly socks like ... It doesn't matter, pick it up and wear it again.

The options in the above method need to pass in an enumeration, which presumably controls these elements: Animation in the current animation nested in the execution of the time between the speed of the type (fast after the slow and so on). )。 Do you want to repeat the animation all the time. If I use a transition animation then what kind of transition effect do I use? There are also child animations nested in the parent animation when we treat the same options in the parent animation, and so on ...

 text :

uiviewanimationoptionlayoutsubviews // Commit the animation when the layout child controls, indicating that the child controls will be animated with the parent control.

uiviewanimationoptionallowuserinteraction // animation allows users to communicate, such as Touch

uiviewanimationoptionbeginfromcurrentstate // start animation from current state

uiviewanimationoptionrepeat // animation infinite repetition

Uiviewanimationoptionautoreverse // Perform an animation loop , provided the animation is set to repeat infinitely

uiviewanimationoptionoverrideinheritedduration // Ignore execution time of outer animation nesting

Uiviewanimationoptionoverrideinheritedcurve // ignore temporal variation curve of outer animation nesting

uiviewanimationoptionallowanimatedcontent // animate by changing properties and redrawing if key does not commit the animation will use the snapshot

uiviewanimationoptionshowhidetransitionviews // use an explicit alternative to adding an animated effect that removes a layer

uiviewanimationoptionoverrideinheritedoptions // ignore options for nested inheritance

//Time function curve correlation

Uiviewanimationoptioncurveeaseinout // time curve function, from slow to fast

Uiviewanimationoptioncurveeasein // time curve function, from slow to very fast

Uiviewanimationoptioncurveeaseout // time curve function, from fast to slow

Uiviewanimationoptioncurvelinear // time curve function, constant speed

//Transitions animation related

Uiviewanimationoptiontransitionnone // No transition animation

Uiviewanimationoptiontransitionflipfromleft // transitions are flipped from left

Uiviewanimationoptiontransitionflipfromright // transitions from right to flip

Uiviewanimationoptiontransitioncurlup // roll up transitions

Uiviewanimationoptiontransitioncurldown // Lower volume transitions

Uiviewanimationoptiontransitioncrossdissolve // transition crosses disappear

Uiviewanimationoptiontransitionflipfromtop // transitions from top to upside

Uiviewanimationoptiontransitionflipfrombottom // transition from bottom to reverse

The above is a shallow understanding, welcome friends have better correction, lest fraught.

Add: About the last set of transition animations It is generally used in this method:

[UIView transitionFromView:toView:duration: options: completion:^ ( BOOL finished) {}];

The effect of this method is to insert a side view to remove one side of the view, during which some transition animation effects can be used.

(original) enumeration uiviewanimationoptions in iOS 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.