Reputation: 1938
I have keyboard with lots of languages, e.g. Hebrew, Arabic and English
This line works fine in iOS 4:
[cell.textField setTextAlignment:UITextAlignmentRight];
But in iOS 5 it's not working - When I try to enter text in English I get right text alignment, but when I try to type in Hebrew or Arabic I get left text alignment.
Why is iOS 5 not applying my text alignment, and how should I fix it?
Thanks
Upvotes: 1
Views: 1226
Reputation: 19
The command help says to use NSTextAlignment.
[yourTextField setTextAlignment:NSTextAlignmentCenter];
that worked for me
Upvotes: 1