user784625
user784625

Reputation: 1938

Weird iOS 5 Bug - UITextField setTextAlignment Does Not Work In iOS5

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

Answers (1)

Lil C Big Durkee
Lil C Big Durkee

Reputation: 19

The command help says to use NSTextAlignment.

[yourTextField setTextAlignment:NSTextAlignmentCenter];

that worked for me

Upvotes: 1

Related Questions