Say you have a UIView
or a CALayer
that does its own (vector) drawing, and you want it to remain crisp at any size, even when scaling the view or layer. How can I make it redraw when it is scaled with the transform
property? Is the only way to do to force a bounds
change instead of using the transform
? Or to call setNeedsDisplay
at every step?
Why do UIImageView
seem to behave differently (i.e. it seems to always scale its source image appropriately, even when it is scaled with transform
and the bounds
doesn't change)? Is it because it's the only case where the content
property of the underlying CALayer
is set directly?