textField.attributedPlaceholder = NSAttributedString(string: " *请输入手机号码", attributes: [
NSAttributedString.Key.foregroundColor: UIColor.white
])
textField.attributedPlaceholder = NSAttributedString(string: " *请输入手机号码", attributes: [
NSAttributedString.Key.foregroundColor: UIColor.white
])
本文标题:修改UITextField的Placeholder字体的颜色
本文链接:https://www.haomeiwen.com/subject/hhzdhktx.html
网友评论