jjzjj

CGContextGetPathCurrentPoint

全部标签

ios - 我如何在 Objective-C 中获取 CGContext 的最后一点?

我正在处理自定义进度条,我想获取CGContext的最后一点,因为我想将图像添加到当前状态。这是我的代码:-(void)drawRect:(CGRect)rect{CGContextRefctx=UIGraphicsGetCurrentContext();CGPointcenter=CGPointMake(rect.size.width/2,rect.size.height/2);floatminSize=MIN(rect.size.width,rect.size.height);floatlineWidth=_strokeWidth;if(lineWidth==-1.0)lineWi