I need to draw incrementally in a subclassed UIView, but the view is cleared every time I call [self setNeedsDisplay]
.
I'm doing this:
- (id)initWithCoder:(NSCoder *)aDecoder {
if ((self = [super initWithCoder:aDecoder])) {
self.clearsContextBeforeDrawing = FALSE;
}
return self;
}
Am I missing something? How do I stop UIView
from clearing?