美文网首页
修改textField的placeholder的字体颜色、大小[

修改textField的placeholder的字体颜色、大小[

作者: 路这么长 | 来源:发表于2016-11-18 16:19 被阅读18次
textField.placeholder = @"请输入验证码";

[textField setValue:[UIColor blueColor] forKeyPath:@"_placeholderLabel.textColor"];

[textField setValue:[UIFont boldSystemFontOfSize:14] forKeyPath:@"_placeholderLabel.font"];

_telTextField.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;;

相关文章

网友评论

      本文标题:修改textField的placeholder的字体颜色、大小[

      本文链接:https://www.haomeiwen.com/subject/awqspttx.html