UITextField里面的 placeholder颜色和字体

//  placeholder 颜色 

  [field setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"];

//  placeholder 字体大小
  [field setValue:[UIFont boldSystemFontOfSize:20] forKeyPath:@"_placeholderLabel.font"];

posted @ 2016-07-11 14:38  代码始我快乐  阅读(232)  评论(0)    收藏  举报