使用的KVC的方法改变的textField的属性:
-
textField.placeholder
= @"username is in here!"; -
[textField
setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"]; -
[textField
setValue:[UIFont boldSystemFontOfSize:16] forKeyPath:@"_placeholderLabel.font"];