- 利用KVC修改
textField.placeholder = @"username is in here!";
[textField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"];
[textField setValue:[UIFont boldSystemFontOfSize:16] forKeyPath:@"_placeholderLabel.font"];
- 搜索時(shí),發(fā)現(xiàn)這篇文章寫得很全,可以參考:
http://www.lxweimin.com/p/e5c6c9b455dd