iOS 部分圆角
2016-12-12 本文已影响17人
L小杰
maskLayer.path = [UIBezierPath bezierPathWithRoundedRect:rectBounds byRoundingCorners: UIRectCornerTopLeft | UIRectCornerBottomLeft cornerRadii: (CGSize){10.0f, 10.0f}].CGPath;
_image.layer.mask = maskLayer;
maskLayer.path = [UIBezierPath bezierPathWithRoundedRect:rectBounds byRoundingCorners: UIRectCornerTopLeft | UIRectCornerBottomLeft cornerRadii: (CGSize){10.0f, 10.0f}].CGPath;
_image.layer.mask = maskLayer;