Roby
Roby

Reputation: 179

CGContextRef draw lines and points,how to clear screen?

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

Answers (1)

Antonio MG
Antonio MG

Reputation: 20410

Try with this:

 CGContextClearRect(UIGraphicsGetCurrentContext(), rect);

Upvotes: 4

Related Questions