修改字体颜色:
[textField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"];
修改字体大小:
[textField setValue:[UIFont boldSystemFontOfSize:16] forKeyPath:@"_placeholderLabel.font"];
修改字体颜色:
[textField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"];
修改字体大小:
[textField setValue:[UIFont boldSystemFontOfSize:16] forKeyPath:@"_placeholderLabel.font"];
本文标题:修改UITextField中的placeholder的字体
本文链接:https://www.haomeiwen.com/subject/vplktxtx.html
网友评论