【发布时间】:2012-05-31 21:06:34
【问题描述】:
我有一个 imageView,我想使用 CGPoints 在该 imageView 中的图像上画线,但我遇到错误,例如:上下文无效等。任何没有 CGContext 方法的画线解决方案。
CGContextRef cntxt = UIGraphicsGetCurrentContext();
CGContextMoveToPoint(cntxt, p1.x, p1.y);
CGContextAddLineToPoint(cntxt, p2.x, p2.y);
CGContextStrokePath(cntxt);
谢谢
【问题讨论】:
标签: iphone objective-c ios cocoa cgcontext