iOS 开开中textfield的一些记录

1.placehold

      使用KVC机制改变占位符的颜色和大小

  1. [textField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"];  
  2. [textField setValue:[UIFont boldSystemFontOfSize:16] forKeyPath:@"_placeholderLabel.font"];  

 

posted @ 2017-06-12 11:25  日月哥哥  阅读(189)  评论(0)    收藏  举报