[iOS]UITextField修改Placeholder颜色
作者:
汴城码农 | 来源:发表于
2021-03-19 21:08 被阅读0次 self.usernameTextField.tintColor = [UIColor blackColor];
NSDictionary *attrs = @{NSForegroundColorAttributeName: UIColorFromRGBA(0xffffff, .6f)};
self.usernameTextField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"请输入帐号".ntes_localized attributes:attrs];
self.passwordTextField.tintColor = [UIColor blackColor];
self.passwordTextField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"请输入密码".ntes_localized attributes:attrs];
本文标题:[iOS]UITextField修改Placeholder颜色
本文链接:https://www.haomeiwen.com/subject/inmbcltx.html
网友评论