一句话就可以搞定了的 [self.textField setValue:UIColorFromRGBA(0xffffff, .6f) forKeyPath:@"_textField.textColor"];