标签: ios swift uitextfield nsattributedstring
我一直在挠头,为什么我的NSAttributedString已经消失了。我尝试将NSForegroundColorAttributeName属性设置为黑色或任何其他颜色。但没有成功。
NSForegroundColorAttributeName
答案 0 :(得分:4)
最后我记得 - 前几天我将应用程序的全局tintColor更改为白色。所以当我改变textField的色调时,brorlem就解决了
myTextField.tintColor = UIColor.blueColor()