一种高效图片圆角方式
-(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;
}
 
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号