标签: cocoa-touch uikit core-graphics
如何绘制带有核心图形的实心圆并将其作为UIImage返回?
我想做以下事情:
+ (UIImage*) circleImageWithRadius:(CGFloat)radius fillColor:(UIColor*)clr;
答案 0 :(得分:4)
这应该可以帮到你: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
CGContextFillEllipseInRect