绘制圆圈并存储在UIImage中
问题描述:
如何绘制带核心图形的实心圆并将其作为UIImage返回?绘制圆圈并存储在UIImage中
我想要做的东西像下面这样:
+ (UIImage*) circleImageWithRadius:(CGFloat)radius fillColor:(UIColor*)clr;
答
这应该让你最那里的方式:http://www.codza.com/creating-and-drawing-on-a-new-uiimage
也期待在CGContextFillEllipseInRect
: http://developer.apple.com/library/mac/#documentation/GraphicsImaging/Reference/CGContext/Reference/reference.html