Never saw code with UIView.opaque assignment, whatever alpha or backgroundColor it uses. Is this flag ignored by system?
Conversation
It determines how many channels are in the backing store buffer that gets made for the layer if you implement drawRect:.
1
so the doc is incorrect? According to it, if alpha < 1 or backgroundColor.alpha < 1 something bad would happen, but never.
1
UIVIew.opaque(developer.apple.com/library/ios/do) VS CALayer.opaque(developer.apple.com/library/mac/do). The latter is consistent with you.
1
Replying to
Eh. Basically UIView makes no promises if you set opaque=YES and don’t fill with opaque contents. Might be okay now; could change.
Replying to
"opaque contents" is interesting. iOS doc is more specific: developer.apple.com/library/ios/do But is backgroundColor deemed contents?
1
That qualifies here, yeah.
3
Show replies

