Skip to content

Commit 6467cb7

Browse files
author
sunli
committed
GuideDemo - 优化遮罩效果 - sunljz
1 parent 7e10e0c commit 6467cb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GuideDemo/GuideDemo/UIImage+Mask.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ - (UIImage *)maskImage:(UIColor *)maskColor
1414
{
1515
CGRect rect = CGRectMake(0, 0, self.size.width, self.size.height);
1616

17-
UIGraphicsBeginImageContext(rect.size);
17+
UIGraphicsBeginImageContextWithOptions(rect.size, NO, 0);
1818

1919
CGContextRef context = UIGraphicsGetCurrentContext();
2020
CGContextTranslateCTM(context, 0, rect.size.height);

0 commit comments

Comments
 (0)