uibutton

最新文章

Swift 3自定义UIButton子类设置按钮圆角和阴影

定义UIButton的子类CustomButton,在CustomButton设置按钮的圆角和阴影。Swift 3import UIKitclass CustomButton: UIButton { var shadowLayer: CAShapeLayer! override func layoutSubviews() { super.layoutSubviews()