davidyff
textField.placeholder = @"username is in here!"; 
[textField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"]; 
[textField setValue:[UIFont boldSystemFontOfSize:16] forKeyPath:@"_placeholderLabel.font"]; 

这里是使用了KVC的方式,是不是很简单呢

分类:

技术点:

相关文章:

  • 2022-01-17
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2022-01-18
  • 2022-03-01
猜你喜欢
  • 2022-01-23
  • 2022-12-23
  • 2022-01-19
  • 2022-01-12
  • 2022-12-23
  • 2022-02-16
相关资源
相似解决方案