Hi,
I'm designing an iPhone app right now that uses a custom UIView that displays a photo and then some quartz drawing over it. Right now, the drawRect function for the view looks like this:
[image drawInRect:[self bounds]];
//some quartz drawing code here
The problem is that when the image is hi-res, the program lags a lot. Also, the quartz drawing is the only thing that needs to be updated frequently. The actual picture is mostly static. I was wondering if there was a way to layer to views on top of each other and have the bottom one contain the picture and the top one contain my drawing code, so that I wouldn't have to redraw the picture each time the quartz stuff is updated. Can that be done?
Thanks