1.placehold

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

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