var button = UIButton(type:UIButtonType.system)
//var button = UIButton(type:UIButtonType.custom)
//button.setImage(UIImage(named:"图片名"), for: UIControlState.init(rawValue: 0))
button.frame=CGRect(x:Int(screen_width-70), y:100+80*3+60, width:50, height:30)
button.setTitle("
iOS开发(Swift)——Button的使用
最新推荐文章于 2024-05-30 22:31:11 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)