如何更改 textColor 或 MDCTextInputControllerOutlined
How to change textColor or MDCTextInputControllerOutlined
我正在使用 MDCTextInputControllerOutlined
,我想将 textColor 更改为白色 我尝试了很多方法,但我无法更改 textColor 以下是我的代码:
var emailTextFieldController : MDCTextInputControllerOutlined?
emailTextFieldController = MDCTextInputControllerOutlined(textInput: txtEmailAddress)
emailTextFieldController?.borderStrokeColor = UIColor.white
emailTextFieldController?.activeColor = UIColor.white
emailTextFieldController?.inlinePlaceholderColor = UIColor.white
emailTextFieldController?.textInputClearButtonTintColor = .white
emailTextFieldController?.floatingPlaceholderActiveColor = UIColor.white
如何更改文本MDCTextInputControllerOutlined
?
txtEmailAddress.textColor = UIColor.white
我正在使用 MDCTextInputControllerOutlined
,我想将 textColor 更改为白色 我尝试了很多方法,但我无法更改 textColor 以下是我的代码:
var emailTextFieldController : MDCTextInputControllerOutlined?
emailTextFieldController = MDCTextInputControllerOutlined(textInput: txtEmailAddress)
emailTextFieldController?.borderStrokeColor = UIColor.white
emailTextFieldController?.activeColor = UIColor.white
emailTextFieldController?.inlinePlaceholderColor = UIColor.white
emailTextFieldController?.textInputClearButtonTintColor = .white
emailTextFieldController?.floatingPlaceholderActiveColor = UIColor.white
如何更改文本MDCTextInputControllerOutlined
?
txtEmailAddress.textColor = UIColor.white