最近在看KVC和KVO,利用KVC实现了对textField的placeholder的字体颜色和大小的修改
- [textField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"];
- [textField setValue:[UIFont boldSystemFontOfSize:16] forKeyPath:@"_placeholderLabel.font"];
最近在看KVC和KVO,利用KVC实现了对textField的placeholder的字体颜色和大小的修改