When I call setNeedsDisplay()
on my UIView's CALayer (either directly, or via needsDisplayOnBoundsChange
), it draws the background as black.
myView.layer.setNeedsDisplay()
When I call 'setNeedsDisplay()' on the UIView directly, it doesn't show up as black:
myView.setNeedsDisplay()
Why does this happen, and how can I fix it?