我想在包含标题和图像的 UIButton 中更改标题的背景颜色(仅限!)。
我只能看到如何更改整个按钮的背景颜色,这不是我想要的。
任何想法 ?
完整的答案是:
btn.tintColor = UIColor.clear //if we have different tint, which I had
btn.titleLabel?.backgroundColor = UIColor.clear
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句