标签: ios swift uibutton storyboard
这是我的班级:
@IBDesignable class WLButton: UIButton { @IBInspectable var width: CGFloat = 0 { didSet { frame.size.width = width } } }
此课程不会在故事板中更改按钮的宽度。为什么呢?