-(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; }
时间: 2024-11-13 22:03:37