Hi,
I have an UIView which I want to give a gradient background and I'm wondering how to implement that as efficient as possible.
I am considering three options:
Create an UIImageView as subview and give it an image of the gradient to display.
Draw the gradient image in drawRect: of the original UIView.
Draw the gradient in drawRect:, but this time use CoreGraphics to 'create it from scratch'.
Which of these three would be the fastest/least memory intensive? (The fastest to run, not to write.)
Thanks!