修改字体颜色:
[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/skmnyxtx.html
网友评论