设置textField placeholder的颜色方法:
//第一种
UIColor *color = [UIColor whiteColor];
_textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"用户名" attributes:@{NSForegroundColorAttributeName: color}];
//第二种
[_textField setValue:[UIColor whiteColor] forKeyPath:@"_placeholderLabel.textColor"];