[self.phoneNumberTF setValue:RGB(143, 144, 144) forKeyPath:@"_placeholderLabel.textColor"];
[self.phoneNumberTF setValue:[UIFont boldSystemFontOfSize:15*kRating] forKeyPath:@"_placeholderLabel.font"];// 字体代码要放在设置文本框字体大小后面
[self.phoneNumberTF setValue:RGB(143, 144, 144) forKeyPath:@"_placeholderLabel.textColor"];
[self.phoneNumberTF setValue:[UIFont boldSystemFontOfSize:15*kRating] forKeyPath:@"_placeholderLabel.font"];// 字体代码要放在设置文本框字体大小后面
本文标题:修改placeholder字体颜色
本文链接:https://www.haomeiwen.com/subject/tgmwbxtx.html
网友评论