The real difference between the frame and bounds properties of the iOS development question UIView

Source: Internet
Author: User

Have seen many of the internet for frame and the difference between bounds, most of them are stereotyped!

Most of the arguments are:

The frame reference coordinate system is its parent view,

is the reference coordinate system of the bounds itself?

Although it is generally correct, few people can say more concretely and thoroughly.

According to my research:

Frame: Refers to the top-left vertex of a child view in the parent view of the coordinates bounds: when it is itself as a parent view, the position of the upper-left corner of the child view in the coordinate system!bounds This property is the cornerstone of the implementation Uiscrollview, by changing  The bounds of the view can simulate similar scrolling effects, but it also requires more complex animations and other system optimizations!

Original Http://blog.csdn.net/yangbingbinga

The real difference between the frame and bounds properties of the iOS development question UIView

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.