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
Eh. Basically UIView makes no promises if you set opaque=YES and don’t fill with opaque contents. Might be okay now; could change.
1
"opaque contents" is interesting. iOS doc is more specific: developer.apple.com/library/ios/do But is backgroundColor deemed contents?
1
Replying to
That qualifies here, yeah.
Replying to
what's interesting is .opaque is actually orthogonal to .contents per doc, but we'r still talking about "opaque contents"...

