Search code examples
iosobjective-cios9.1

Text was not showing from right to left in Hebrew language in iOS 9.1?


In my app I am displaying some text in Hebrew. when it was in previous iOS versions it was working fine. When I am upgrade to iOS 9.1. It was showing like from left to right. But it should right to left. How can I resolve this issue ?


Solution

  • From iOS 9 onwards text direction sets automatically. Just make sure that your UILable or UITextView text allignment is set to NSTextAlignmentNatural. If you are using storyboard or xib. you can set text direction like below image.

    enter image description here