【发布时间】:2015-10-26 01:51:13
【问题描述】:
我已关注问题How can I use Core Graphics to draw a circle at my touch location?,现在我的触摸位置有圆圈。
现在我想要一个捏合手势来调整带有圆圈的视图大小(例如在 Photo.app 中缩放照片)是否可以使用 CoreGraphics 对象实现此行为?
这是我的画圆代码:
CGContextRef ctx= UIGraphicsGetCurrentContext();
CGContextSaveGState(ctx);
CGContextSetLineWidth(ctx,5);
CGContextSetRGBStrokeColor(ctx,0.8,0.8,0.8,1.0);
CGContextAddArc(ctx,20,40,30,0.0,M_PI*2,YES);
CGContextStrokePath(ctx);
【问题讨论】:
标签: ios core-graphics