KVO 简单方便
[textField setValue:[UIColor redColor]forKeyPath:@"_placeholderLabel.textColor"];
[textField setValue:[UIFont SystemFontOfSize:16]forKeyPath:@"_placeholderLabel.font"];
KVO 简单方便
[textField setValue:[UIColor redColor]forKeyPath:@"_placeholderLabel.textColor"];
[textField setValue:[UIFont SystemFontOfSize:16]forKeyPath:@"_placeholderLabel.font"];
本文标题:修改Textfield 占位颜色字体
本文链接:https://www.haomeiwen.com/subject/zjdtvqtx.html
网友评论