I have a custom view with some drawing on it.
I want to resize it to a new proportion and I want the pattern I drew in it’s drawRect to also be resized by the same proportion.
Is there anyway I can accomplish this without refreshing and redrawing everything.
This should be happening for you automatically with the default
contentMode, which isUIViewContentModeScaleToFill.contentModedetermines how to adjust the cached bitmap without forcing a new call todrawRect:. Also seecontentStretchwhich allows you to control which part of the view is scaled.