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