swift设置UIButton的title文字

来源:互联网 发布:国轩高科待遇 知乎 编辑:程序博客网 时间:2024/05/22 16:59

let btn = UIButton(frame: CGRect(x: x, y: y, width: 20 , height: 20 ) )
btn.setTitle(“click”, forState: UIControlState.Normal)

0 0