修改placeholder字体颜色

[self.phoneNumberTF setValue:RGB(143, 144, 144) forKeyPath:@"_placeholderLabel.textColor"];
[self.phoneNumberTF setValue:[UIFont boldSystemFontOfSize:15*kRating] forKeyPath:@"_placeholderLabel.font"];// 字体代码要放在设置文本框字体大小后面

你可能感兴趣的:(修改placeholder字体颜色)