如何高性能的给UIImageView加个圆角

2017-02-07  本文已影响17人  anny_4243
 UIGraphicsBeginImageContextWithOptions(image.size, NO, image.scale);
 [[UIBezierPath bezierPathWithRoundedRect:RECT     cornerRadius:RADIUS] addClip];
 [image drawInRect:RECT];
 UIImage* imageNew =     UIGraphicsGetImageFromCurrentImageContext();
 UIGraphicsEndImageContext();
上一篇 下一篇

猜你喜欢

热点阅读