such as the code:
view.opaque = YES;
and
view.backgroundColor = [UIColor clearColor];
any one who can explain something about this?
EDIT:
as the document shows:
Declare Views as Opaque Whenever Possible
UIKit uses the opaque property of each view to determine whether the view can optimize compositing operations. Setting the value of this property to YES for a custom view tells UIKit that it does not need to render any content behind your view. Less rendering can lead to increased performance for your drawing code and is generally encouraged. Of course, if you set the opaque property to YES, your view must fills its bounds rectangle completely with fully opaque content.
opaque property is used for determining whether the view can optimize compositing operations.
so the question is:
if i set view.opaque = YES
and view.backgroundColor = [UIColor clearColor]
,the former increased performance,how about the latter?