let btn = UIButton(frame: CGRect(x: x, y: y, width: 20 , height: 20 ) )
btn.setTitle(“click”, forState: UIControlState.Normal)
swift设置UIButton的title文字
最新推荐文章于 2022-03-23 00:30:55 发布
let btn = UIButton(frame: CGRect(x: x, y: y, width: 20 , height: 20 ) )
btn.setTitle(“click”, forState: UIControlState.Normal)