热门搜索 :
考研考公
您的当前位置:首页正文

设置textField.placeholder的颜色

来源:东饰资讯网

用KVC的方法

textField.placeholder = @"客户信息";  
[textField setValue:[UIColor blackColor] forKeyPath:@"_placeholderLabel.textColor"];  
[textField setValue:[UIFont boldSystemFontOfSize:16] forKeyPath:@"_placeholderLabel.font"];
Top