The difference between UIView and Calayer

Source: Internet
Author: User
1, UIView compared to calayer the biggest difference is UIView can respond to user events, and Calayer not. UIView focuses on the management of display content, and Calayer focuses on drawing content. 2, UIView and calayer are interdependent relationships. UIView relies on content provided with Calayer, Calayer relies on the container provided by UIView to display the content being drawn. In the final analysis Calayer is the basis of all this, if no calayer,uiview itself will not exist, UIView is a special calayer implementation, adding the ability to respond to events. 3, UIView from Calayer, higher than Calayer, is calayer high-level implementation and encapsulation. All features of the UIView are derived from Calayer support.

The difference between UIView and Calayer

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.