【发布时间】:2019-04-05 15:04:37
【问题描述】:
extension UIView {
func roundBottom(raduis: CGFloat){
let maskPath1 = UIBezierPath(roundedRect: bounds,
byRoundingCorners: [.BottomRight, .BottomLeft],
cornerRadii: CGSize(width: raduis, height: raduis))
let maskLayer1 = CAShapeLayer()
maskLayer1.frame = bounds
maskLayer1.path = maskPath1.CGPath
layer.mask = maskLayer1
}
}
并致电cell.bottomCorner.roundBottom(8)
但我明白了:
iPhone 5:
iPhone 6s:
iPhone 6s Plus:
【问题讨论】: