产生纯色图像

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

posted on 2016-10-11 23:37  花老🐯  阅读(561)  评论(0编辑  收藏  举报

导航