3
我已经在touchesMoved()方法中编写了一个在iOS中绘图的程序。完成绘图后清除CGPath路径
CGContextAddPath(UIGraphicsGetCurrentContext(), path);
CGPathMoveToPoint(path, NULL, lastPoint.x, lastPoint.y);
CGPathAddLineToPoint(path, NULL, lastPoint.x, lastPoint.y);
CGContextDrawPath(UIGraphicsGetCurrentContext(), kCGPathStroke);
如何清除绘制的路径并恢复原始视图?
你的意思是你想删除图纸? – Sarah 2012-02-01 11:10:50
是的,我想清除绘图并恢复原始视图 – Mukunda 2012-02-02 04:23:00
对不起,但我离开了我的工作场所,我没有检查回复 – Mukunda 2012-02-02 05:29:36