objective c - UITextField IOS7 not setting font color during input -


i have simple code worked fine under ios6. in uitextfield when event editingdidbegin arrived executed simple piece of code changed color of text entered:

textfield.textcolor = [uicolor redcolor]; 

although code executed, text color not change red, remains unchanged @ default color text being entered.

if call method on editingdidend, text entered in default color, changes red when editingdidend kicks off same piece of code:

textfield.textcolor = [uicolor redcolor]; 

it seems though can not change textcolor property when textfield first responder.

any here appreciated.

you should subclassing that

here solution works both on ios6 , ios7 http://www.brightec.co.uk/blog/how-change-colour-uitextfields-placeholder-text-ios7-and-still-support-ios6


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -