I have a small app that allows the user to draw on the screen with the finger. I have a UIImageView where the user draws, by creating a CGContextRef
UIImageView
CGContextRef
This will do the trick:
CGContextSetBlendMode(context, kCGBlendModeClear)