一种高效图片圆角方式

-(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;
}

  

posted @ 2015-07-22 19:53  Nonato  阅读(180)  评论(0编辑  收藏  举报