我正在尝试使用CoreGraphics绘制一个半圆并用一些颜色填充它。我想使用CALayer将颜色替换为图像。任何人都可以帮助如何做到这一点谢谢!代码在这里。CGContextRefcontext=UIGraphicsGetCurrentContext();CGContextSetLineWidth(context,2);CGContextSetStrokeColorWithColor(context,[UIColorblueColor].CGColor);CGContextMoveToPoint(context,0,500);CGContextAddArc(context,60,50