Is it not wasteful that there is a requirement that if you want to draw into a UIImage, that it always has to be into a new UIImage created with UIGraphicsBeginImageContext?
If frequent drawing needs to happen, why not let us draw into a preexisting UIImage?
Or is there a way to do this already?
This is because
UIImage
is not mutable. If you are constantly rendering to a newCGBitmapContext
, then you are doing something wrong in your application.