阅读660 返回首页    go 阿里云 go 技术社区[云栖]


ios修改textField的placeholder的字体颜色、大小

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

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


更详细请参考原文:标哥的技术博客

最后更新:2017-04-03 05:39:38

  上一篇:go HDU1072-Nightmare【广度优先搜索】
  下一篇:go linux索引节点及值(弄清十分必要)