Language-Manager-iOS icon indicating copy to clipboard operation
Language-Manager-iOS copied to clipboard

UITextField placeholder not fine in uitextField

Open RajChanchal opened this issue 8 years ago • 4 comments

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.

RajChanchal avatar Apr 11 '16 14:04 RajChanchal

u can fix it but text Alignment

textfield.textAlignment =NSTextAlignmentRight;

AhmedShammala avatar Apr 25 '16 06:04 AhmedShammala

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.

RajChanchal avatar Apr 29 '16 10:04 RajChanchal

I am also facing same issue

askaralic avatar Apr 03 '17 13:04 askaralic

You can use this

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

AhmedShammala avatar Apr 03 '17 16:04 AhmedShammala