一种高效图片圆角方式

-(void)addRoundBorder:(UIView *)view
{
    CAShapeLayer * acircle = [CAShapeLayer layer];
    acircle.path = [UIBezierPath bezierPathWithRoundedRect:view.bounds  cornerRadius:view.frame.size.height/2].CGPath;
    acircle.fillColor = [UIColor blackColor].CGColor;
    view.layer.mask = acircle;
}

  

原文地址:https://www.cnblogs.com/nonato/p/4668443.html