Tip
使用attributedPlaceholder
NSAttributedString *placeHolder = [[NSAttributedString alloc]initWithString:@"请输入密码" attributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];
_textField.attributedPlaceholder = placeHolder;
Tip
使用attributedPlaceholder
NSAttributedString *placeHolder = [[NSAttributedString alloc]initWithString:@"请输入密码" attributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];
_textField.attributedPlaceholder = placeHolder;
本文标题:设置UITextField占位符placeholder颜色
本文链接:https://www.haomeiwen.com/subject/ctlrpttx.html
网友评论