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

show u the code

其实你只需要的时圆角图片。。。。。

 UIGraphicsBeginImageContextWithOptions(image.size, NO, image.scale);
 [[UIBezierPath bezierPathWithRoundedRect:RECT     cornerRadius:RADIUS] addClip];
 [image drawInRect:RECT];
 UIImage* imageNew =     UIGraphicsGetImageFromCurrentImageContext();
 UIGraphicsEndImageContext();

推荐阅读更多精彩内容