Friday, June 20, 2014

Xcode - Iphone, UITextfiled placeholder color settings

UIColor *color = [UIColor lightTextColor];
YOURTEXTFIELD.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"PlaceHolder Text" attributes:@{NSForegroundColorAttributeName: color}];

No comments:

Post a Comment