UIImage与UIColor互转。
UIColor转UIImage:
1 | +(UIImage*)createImageWithColor:(UIColor *)color andSize:(CGSize)size |
UIImage转UIColor:
1 | [UIColor colorWithPatternImage:image]; |
UIImage与UIColor互转。
1 | +(UIImage*)createImageWithColor:(UIColor *)color andSize:(CGSize)size |
1 | [UIColor colorWithPatternImage:image]; |