要达到只为其左下角与右下角做处理。
这里我们需要借助UIBezierPath与CAShapeLayer进行实现。判断是否为最后选项,然后进行如下设置。
UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect: cell.contentView.bounds byRoundingCorners: UIRectCornerBottomLeft|UIRectCornerBottomRight cornerRadii: CGSizeMake(10, 10)];CAShapeLayer *maskLayer = [[CAShapeLayer alloc]init];maskLayer.frame = cell.contentView.bounds;maskLayer.path = maskPath.CGPath;cell.layer.mask = maskLayer;
5254

被折叠的 条评论
为什么被折叠?



