UIGraphicsBeginImageContextWithOptions(imagBounds.size, NO, 0);
[color setFill];
UIRectFill(imagBounds);
UIImage *img = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return img;
相关文章: