We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fa0c2cb + 0564fc0 commit 91d903dCopy full SHA for 91d903d
1 file changed
QMUI/QMUIKit/UIKitExtensions/UIImage+QMUI.m
@@ -424,8 +424,7 @@ + (UIImage *)qmui_imageWithColor:(UIColor *)color size:(CGSize)size cornerRadius
424
UIImage *resultImage = nil;
425
color = color ? color : UIColorClear;
426
427
- BOOL opaque = [color qmui_alpha] == 1.0;// 颜色本身不带透明,就不用创建带透明通道的 image 了
428
- UIGraphicsBeginImageContextWithOptions(size, opaque, 0);
+ UIGraphicsBeginImageContextWithOptions(size, NO, 0);
429
CGContextRef context = UIGraphicsGetCurrentContext();
430
CGContextSetFillColorWithColor(context, color.CGColor);
431
0 commit comments