设置placeholder的字体颜色

//设置字体颜色

[self.searchTextField setValue:[UIColor colorWithRed:0.50 green:0.50 blue:0.50 alpha:1.0] forKeyPath:@"_placeholderLabel.textColor"];
   

//设置字体大小

[self.searchTextField setValue:[UIFont systemFontOfSize:15] forKeyPath:@"_placeholderLabel.font"];

posted @ 2016-05-27 16:09  有棱角的圆  阅读(622)  评论(0编辑  收藏  举报