- [self.layer addSublayer:self.shapeLayer]
shapeLayer添加到layer上时,fillColor和strokeColor都有效。 - self.layer.mask = _shapeLayer;
shapeLayer设置为mask时,fillColor和strokeColor都是无效的。
本文标题:ShapeLayer fillColor strokeColor
本文链接:https://www.haomeiwen.com/subject/dcwejxtx.html
网友评论