纯粹个人记录
swifit修改
searchField.setValue(UIColor.whiteColor(), forKeyPath: "_placeholderLabel.textColor")
oc修改
[searchField setValue:[UIColor whiteColor] forKey:@"_placeholderLabel.textColor"];
纯粹个人记录
searchField.setValue(UIColor.whiteColor(), forKeyPath: "_placeholderLabel.textColor")
[searchField setValue:[UIColor whiteColor] forKey:@"_placeholderLabel.textColor"];
本文标题:UITextfield 修改placeholder字体颜色
本文链接:https://www.haomeiwen.com/subject/hmizlttx.html
网友评论