View Full Version : Can you change the color of the placeholder text in UITextField?
fenrus110
Jan 5, 2009, 01:02 PM
I'm wanting to change the text color for the placeholder (it's using the default light grey). Is this even possible?
dejo
Jan 5, 2009, 01:19 PM
It should be possible if you override the drawPlaceholderInRect: method.
5et
Jun 24, 2009, 08:23 AM
I add to my class
But I don't know how I can change color here.
Please. help me :(
@implementation UITextField (reverse)
- (void)drawPlaceholderInRect:(CGRect)rect{
//What I must add here?
[super drawRect:rect];
}
@end
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.