第一种方法:
[textfeild setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"];
第二种方法:
@interface LBTextField : UITextField @end
@implementation LBTextField - (void)drawPlaceholderInRect:(CGRect)rect{ [[UIColor orangeColor] setFill]; [[self placeholder] drawInRect:rect withFont:[self font]]; } @end