设置UITextField的placeholder的颜色

[textField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"];
原文地址:https://www.cnblogs.com/china-fanny/p/6030947.html