The opaque
property of a UIView is by default always set to "YES". But the UIView class reference states this:
An opaque view is expected to fill its bounds with entirely opaque content—that is, the content should have an alpha value of 1.0. If the view is opaque and either does not fill its bounds or contains wholly or partially transparent content, the results are unpredictable.
Since changing the alpha
of a view is quite common, especially during transitions or animations, then the above statement would imply that you must always manually set opaque
to NO
if you are going to change the alpha
property as well.
But I have never manually adjusted opaque
and haven't had any noticeable symptoms. How necessary is it to make this consideration?