标签:
-(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; }
标签:
原文地址:http://www.cnblogs.com/nonato/p/4668443.html