iOS CAShapeLayer UIBezierPath 画圆时 锯齿超严重:
_shapeLayer.shouldRasterize = YES;
_shapeLayer.rasterizationScale = 2 * [[UIScreen mainScreen] scale];
self.view.layer.allowsEdgeAntialiasing = YES;
self.view.layer.borderColor = [UIColor clearColor].CGColor;
self.view.layer.borderWidth = 1.f;
以上三种方法都可以好好尝试下,
我用的是第一种方法修饰后,发现效果好了很多。
网友评论