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

show u the code

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

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

你可能感兴趣的:(如何高性能的给UIImageView加个圆角)