UIGraphicsBeginImageContextWithOptions(imagBounds.size, NO, 0);
[color setFill];
UIRectFill(imagBounds);
UIImage *img = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return img;
时间: 2024-10-15 04:32:54