ios - Change placeholder color -
i'm trying set placeholder color in uitextfield white color doesn't seem work. please help. triend line of code:
uicolor *color = [uicolor whitecolor]; emailbox.attributedplaceholder = [[nsattributedstring alloc] initwithstring:@"enter email address" attributes:@{nsforegroundcolorattributename: color}];
maybe connected this answered issue, solution check context in setting attributedplaceholder.
maybe doing in viewdidload?
try doing when user begins enter text. in textfield:shouldchangecharactersinrange:
Comments
Post a Comment