使用最新的 iOS 13 Beta
我真的不明白这是测试版的问题还是我的问题,
但我的 iOS 12 没有这个问题
code
let button = UIButton(type: .custom)
button.setTitle("connect", for: .normal)
button.backgroundColor = UIColor(rgb: 0xFF0E83)
button.sizeToFit()
cell.accessoryView = button
cell.textLabel?.text = "Title"
cell.detailTextLabel?.text = "Subtitle"
有结果
有人遇到同样的问题并找到解决方案吗?谢谢
如果将 uibutton 放入 uiview 中,它将在 iOS 13.0 上运行。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)