标签:
//fatherView加虚线边框 -(void)boundingRectangleForView:(UIView *)fatherView{ CAShapeLayer *borderLayer = [CAShapeLayer layer]; borderLayer.fillColor = [UIColor clearColor].CGColor; borderLayer.strokeColor = [UIColor nvColorWith666].CGColor; borderLayer.path = [UIBezierPath bezierPathWithRect:fatherView.bounds].CGPath; borderLayer.lineWidth = 1.f; borderLayer.lineCap = @"square"; borderLayer.lineDashPattern = @[@6, @2]; [fatherView.layer addSublayer:borderLayer]; }
标签:
原文地址:http://www.cnblogs.com/Xylophone/p/5506174.html