1. 修改textField的placeholder的字体颜色、大小
[textField setValue:[UIColor whiteColor] forKeyPath:@"_placeholderLabel.textColor"];
[textField setValue:[UIFont boldSystemFontOfSize:18] forKeyPath:@"_placeholderLabel.font"];
[textField setValue:[UIColor whiteColor] forKeyPath:@"_placeholderLabel.textColor"];
[textField setValue:[UIFont boldSystemFontOfSize:18] forKeyPath:@"_placeholderLabel.font"];
本文标题:TextField
本文链接:https://www.haomeiwen.com/subject/qxljdttx.html
网友评论