layer小tips

weixin_33686714發表於2016-06-05

CAShapeLayer* border = [CAShapeLayer layer];
// border.strokeColor = [UIColor colorWithRed:67/255.0f green:37/255.0f blue:83/255.0f alpha:1].CGColor;
border.strokeColor = [[UIColor whiteColor] CGColor];
border.fillColor = nil;
border.lineDashPattern = @[@3, @3];
[self.layer addSublayer:border];
新增虛線描邊

相關文章