"Clear UIView during drawing"

Mon 11 May 2009

//Please note. To make view transparent you need to add:

//self.backgroundColor = [UIColor clearColor];

 

CGContextRef context = UIGraphicsGetCurrentContext();

CGContextClearRect(context, self.bounds);