TextField

作者: 妮儿_smile | 来源:发表于2016-06-29 15:20 被阅读0次


本篇文章为关于TextField的使用,不定时更新

内容有:修改placeholder颜色

1. 修改placeholder颜色

方法1.

[TF setValue:[UIColor cyanColor] forKeyPath:@"_placeholderLabel.textColor"];

方法2.

TF.attributedPlaceholder=[[NSAttributedString alloc]initWithString:@"修改placeholder字体颜色" attributes:@{NSForegroundColorAttributeName:[UIColor redColor]}];

相关文章

网友评论

      本文标题:TextField

      本文链接:https://www.haomeiwen.com/subject/sbwdlttx.html