iOS修改textField的placeholder的字体颜色、
2018-03-08 本文已影响7人
iaiayao
KVC
textField.placeholder = @"username is in here!";
[textField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"];
[textField setValue:[UIFont boldSystemFontOfSize:16] forKeyPath:@"_placeholderLabel.font"];