maximbilan / Language-Manager-iOS

Language Manager iOS
MIT License
233 stars 34 forks source link

UITextField placeholder not fine in uitextField #7

Open RajChanchal opened 8 years ago

RajChanchal commented 8 years ago
screen shot 2016-04-11 at 7 35 12 pm

Can you please help me resolve it?

I tried [[UITextField appearance]setSemanticContentAttribute:UISemanticContentAttributeForceRightToLeft]; when changing langauge to Arabic, but it didn't work.

This happens when I change language and reload the root view again as you have done in your code. and go into other views to check the effect. And they seem ruined. But when I restart the app, the same views look fine for the last selected language.

AhmedShammala commented 8 years ago

u can fix it but text Alignment

textfield.textAlignment =NSTextAlignmentRight;

RajChanchal commented 8 years ago

It should automatically do it, because my project has so many of these kinda forms. Putting a langauge check is for each field is not a good practice.

askaralic commented 7 years ago

I am also facing same issue

AhmedShammala commented 7 years ago

You can use this

[[UITextField appearance]setSemanticContentAttribute:UISemanticContentAttributeForceRightToLeft];
[[UITextField appearance] setTextAlignment:NSTextAlignmentRight];