设置textField placeholder字体颜色

textField.placeholder = @"This is text!";
[textField setValue:[UIColor whiteColor] forKeyPath:@"_placeholderLabel.textColor"];

[textField setValue:[UIFont boldSystemFontOfSize:16] forKeyPath:@"_placeholderLabel.font"];

你可能感兴趣的:(设置textField placeholder字体颜色)