The Alpha and hidden properties of the UIView

Source: Internet
Author: User

When the Alpha property is 0.0, the view is completely transparent and the view is completely opaque at 1.0.

The Hidden property is yes when the view is hidden, otherwise it is not hidden.

Precautions:

1 cannot respond to touch messages when the view is completely transparent or hidden.

That is, when alpha equals 0.0 or hidden is yes, but when alpha<0.01, the view is not receiving the message.

The alpha value of the 2 view affects the drawing of the child view, but the alpha value of the child view does not change.

Original text of the document: This value affects only the current view and does not affect any of its embedded subviews.

The original text is easily misunderstood (or this is a misreading): The alpha value of the view affects only the current view and does not affect its child views.

However, according to the experimental result, the alpha value of the view changes, which does not cause the child view to change its alpha value, but the rendering will affect the child view.

Specific impact: The child view truly renders an alpha value equal to the alpha of the child view by the parent view.

The Alpha and hidden properties of the 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.