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;