Reputation: 179
I using CGContextRef to draw lines and points in a subview, then i want to redraw. How to clear screen in subview? Thanks.
Upvotes: 1
Views: 1565
Reputation: 20410
Try with this:
CGContextClearRect(UIGraphicsGetCurrentContext(), rect);
Upvotes: 4