UITextField placeholder string is always Top aligned in ios7
问题 I have subclass the UITextField class and did the below code - (void)drawPlaceholderInRect:(CGRect)rect { [self.placeHolderTextColor setFill]; [self.placeholder drawInRect:rect withFont:self.placeHolderFont lineBreakMode:NSLineBreakByTruncatingTail alignment:NSTextAlignmentLeft]; } I have also written self.contentVerticalAlignment = UIControlContentVerticalAlignmentTop; line of code This placeholder text is properly center aligned in ios6 but not in ios7 it is showing top aligned. Although