UIGraphicsBeginImageContextWithOptions(_avatar.bounds.size, NO, [UIScreen mainScreen].scale);
[[UIBezierPath bezierPathWithRoundedRect:_avatar.bounds cornerRadius:25] addClip];
[_avatar.image drawInRect:_avatar.bounds];
_avatar.image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
解决多行cell 设置头像变圆 导致变卡的问题
最新推荐文章于 2022-11-19 14:58:12 发布