iPhone UITextField - Change placeholder text color
Posted
by adam
on Stack Overflow
See other posts from Stack Overflow
or by adam
Published on 2009-08-27T10:36:19Z
Indexed on
2010/04/06
0:13 UTC
Read the original article
Hit count: 1278
iphone
|uitextfield
I'd like to change the color of the placeholder text I set in my UITextField controls, to make it black.
I'd prefer to do this without using normal text as the placeholder and having to override all the methods to imitate the behaviour of a placeholder.
I believe if I override this method..
- (void)drawPlaceholderInRect:(CGRect)rect
..then I should be able to do this. But I'm unsure how to access the actual placeholder object from within this method.
© Stack Overflow or respective owner