用KVC的方法
textField.placeholder = @"客户信息";
[textField setValue:[UIColor blackColor] forKeyPath:@"_placeholderLabel.textColor"];
[textField setValue:[UIFont boldSystemFontOfSize:16] forKeyPath:@"_placeholderLabel.font"];
用KVC的方法
textField.placeholder = @"客户信息";
[textField setValue:[UIColor blackColor] forKeyPath:@"_placeholderLabel.textColor"];
[textField setValue:[UIFont boldSystemFontOfSize:16] forKeyPath:@"_placeholderLabel.font"];
本文标题:设置textField.placeholder的颜色
本文链接:https://www.haomeiwen.com/subject/ohenlttx.html
网友评论