当前位置: 代码迷 >> 综合 >> iOS 修改UITextField 的placeholder字体大小和颜色
  详细解决方案

iOS 修改UITextField 的placeholder字体大小和颜色

热度:19   发布时间:2024-01-20 18:34:07.0

[self.tfEmail setValue:[UIColor greenColor] forKeyPath:@"_placeholderLabel.textColor"];

[self.tfEmail setValue:[UIFont boldSystemFontOfSize:20] forKeyPath:@"_placeholderLabel.font"];

  相关解决方案