改变textField的placeholder的颜色和位置

重写UItextField的这个方法,用其他的textField继承自这个父类

- (void) drawPlaceholderInRect:(CGRect)rect {  

    [[UIColor blueColor] setFill];  

    [self.placeholder drawInRect:rect withFont:self.font lineBreakMode:UILineBreakModeTailTruncation alignment:self.textAlignment];  

原文地址:https://www.cnblogs.com/Acee/p/4980901.html