placeholder设置字体大小与颜色

来源:互联网 发布:谷歌的python课程 编辑:程序博客网 时间:2024/05/21 07:08

很简单就能实现

[textField setValue:[UIColor greenColor] forKeyPath:@"_placeholderLabel.textColor"];  [textField setValue:[UIFont boldSystemFontOfSize:13] forKeyPath:@"_placeholderLabel.font"];