iOS animation programming

Source: Internet
Author: User

1. View Animation (uiviewanimation)

You can change the properties of the view (animatable UIView properties)

Frame: controls the size of the uiview and the relative position of the UIView in Superview.

bounds: control the size of the UIView

Center: control the location of the UIView

Transform: control the UIView of the zoom, rotation angle, etc. fixed in the center position after the change

Alpha: control the transparency of UIView

BackgroundColor: controls the background color of the UIView

Contentstretch: controlling the stretching of UIView


Uiviewanimateoptions


Animation control related

Layoutsubviews: The layout child control when the animation is submitted, indicating that the child control will animate with the parent control.

allowUserInteraction: Allows users to communicate when animating, such as touching

Beginfromcurrentstate: Start animation from current state

Repeat: Infinite repetition of animations

AutoReverse: Performing an animation loop, provided the animation is set to repeat infinitely

Overrideinheritedduration: Ignore execution time of outer animation nesting

Overrideinheritedcurve: Ignores time-varying curves for outer animation nesting

Allowanimatedcontent: Animating effects by changing properties and redrawing if key does not commit the animation will use the snapshot

Showhidetransitionviews: Replaces the animation effect of adding a removed layer in an explicit way

Overrideinheritedoptions: Ignore options for nested inheritance


Time Curve Correlation

Curveeasein: From slow to very fast

Curveeaseinout: from slow to fast

Curveeaseout: from fast to slow

Curvelinear: Constant speed



Transition effect Related

Transitionnone//No transition animation

Transitionflipfromleft//Transitions are flipped from left

Transitionflipfromright//transitions from right to flip

Transitioncurlup//Roll up transitions

Transitioncurldown//Lower volume transitions

Transitioncrossdissolve//transition cross disappears

Transitionflipfromtop//transitions from top to upside

Transitionflipfrombottom//transitions from bottom to upside


2. Core Animation (coreanimation)


iOS animation programming

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.