如何在Swift中更改按钮标题的颜色

是否可以更改按钮标题的颜色?

因为这个代码不起作用

btnLogin.titleColor = UIColor.darkGray

转载请注明出处:http://www.xgclsm.com/article/20230526/1941331.html