ios_40_ Core Animation and drawing

Source: Internet
Author: User

the relationship between Calayer and UIView
UIView itself is not visible, its internal Calayer only has the display function
changing the properties of the Calayer is changing the appearance of the uiview (such as fillets, shadows)
Common Properties of the calayer (such as position, Anchor Point)
Common Properties of calayer (such as borders, rounded corners)
Uicolor and UIImage must be turned into cgcolorref, cgimageref that can cross the platform
The important difference between UIView and Calayer is : Can I interact with the user
The anchor Point is the point at the position coordinates of the parent layer .
when the anchor point of the red layer is (0,0)
When the anchor point of the red layer is (0.5,0)

When the anchor point of the red layer is (1,0.5)

The case when the red layer's anchor point is (0.5,0.5) (default value)

manually created Calayer have an implicit animation that, as long as the value is changed, produces an animation
If you don't want to see an implicit animation, you can turn it off by transaction















































ios_40_ Core Animation and drawing

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.