版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/NLYNN/article/details/79739582
利用KVC赋值
[_textField setValue:[UIColor greenColor] forKeyPath:@"_placeholderLabel.textColor"];
利用KVC赋值
[_textField setValue:[UIColor greenColor] forKeyPath:@"_placeholderLabel.textColor"];