1. 程式人生 > >修改placeholder字型顏色及大小

修改placeholder字型顏色及大小

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