本篇文章為關(guān)于TextField的使用,不定時(shí)更新
內(nèi)容有:修改placeholder顏色
1. 修改placeholder顏色
方法1.
[TF setValue:[UIColor cyanColor] forKeyPath:@"_placeholderLabel.textColor"];
方法2.
TF.attributedPlaceholder=[[NSAttributedString alloc]initWithString:@"修改placeholder字體顏色" attributes:@{NSForegroundColorAttributeName:[UIColor redColor]}];