OC UIView 总结 2021
2021-01-06 本文已影响0人
Look2021
圆角
// 上圆角
self.bottomBackView.layer.cornerRadius = 20;
self.bottomBackView.layer.maskedCorners = kCALayerMinXMinYCorner | kCALayerMaxXMinYCorner;
// 右圆角
_buyNowButton.layer.cornerRadius = kAdaptedFloat(38) / 2;
_buyNowButton.layer.maskedCorners = kCALayerMaxXMinYCorner | kCALayerMaxXMaxYCorner;
// 左圆角
_addCartButton.layer.cornerRadius = kAdaptedFloat(38) / 2;
_addCartButton.layer.maskedCorners = kCALayerMinXMinYCorner | kCALayerMinXMaxYCorner;