How can I implement iOS with RTL for Arabic Hebrew?

16,388

Solution 1

Little late to the party, but iOS 9 has a lot of these things built-in for free.

As of iOS 9, standard UIKit controls are flipped automatically in right-to-left languages (such as UITabBar, UINavigationBar, UITableView etc.), which in conjunction with Auto Layout can make your app 'just work' on RTL.

iOS 9 also has API for flipping images that are directionally-tied, among a few other things.

More info here: https://developer.apple.com/library/prerelease/ios/documentation/MacOSX/Conceptual/BPInternational/SupportingRight-To-LeftLanguages/SupportingRight-To-LeftLanguages.html#//apple_ref/doc/uid/10000171i-CH17

Solution 2

The best and the simplest way to enable RTL language support in your application is by defining constraints (Auto layout) rather than defining frames and bounds.

You can follow the link to kick-start auto layout implementation: Autolayout documentation by Apple

Share:
16,388
Admin
Author by

Admin

Updated on July 26, 2022

Comments