Я пытаюсь закруглить углы на UIView внизу слева и внизу справа.
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: