我正在尝试以这种方式为我的 CGContextSetRGBFillColor 设置颜色:
- (void) drawArrowWithContext:(CGContextRef)context atPoint:(CGPoint)startPoint withSize: (CGSize)size lineWidth:(float)width arrowHeight:(float)aheight andColor:(UIColor *)color
{
CGContextSetRGBFillColor (context,color,color,color,1);
CGContextSetRGBStrokeColor (context, color.CGColor);
....
}
...但是在这两种情况下我都收到错误“参数太少,应该是 5,是 2”。我该如何解决这个问题?