How can I implement iOS with RTL for Arabic Hebrew?

I am developing an application on the target iOS 7.1 for Xcode 5 with a single view that has only an image and a label of two elements, autoscaling is enabled and the restriction is set using the “add missing restriction” with trailing and leading attributes.

According to the Apple website below, this component should flip when I switch to Arabic without any changes to the code, only using the Auto layout, but this did not work https://developer.apple.com/library/ios/ documentation / UserExperience / Conceptual / AutolayoutPG / Introduction / Introduction.html # // apple_ref / doc / uid / TP40010853-CH13-SW1

I am looking for another member question here and found that others say I have to implement a different storyboard for each language, like what is mentioned in this link https://developer.apple.com/library/ios/documentation/MacOSX/ Conceptual / BPInternational / BPInternational.html # // apple_ref / doc / uid / 10000171-SW1

In my main storyboard, I can only find the localization of Base and english, how to add Hebrew and Arabic?

I found the following questions, but they did not add much support: Support for multiple languages ​​on iOS Right to left and left for the desired languages ​​in one application?


Flip UIImageViews for Right-Handed Languages


iOS: how to create your own bilingual iOS language application


Using constraints in Objective-C automatic layouts to support RTL languages


RTL (from right to left) through an automatic layout broken on iOS 6.1 / iOS 7.0?


Right to Left UI on iPhone (Hebrew)


This link is similar to my implementation, but it didn’t work with me AutoLayout + RTL + text alignment UILabel


+7
ios right-to-left arabic hebrew
source share
2 answers

A bit late for the party, but iOS 9 has a lot of these things built in for free.

As in iOS 9, standard UIKit controls are automatically flipped in languages ​​from right to left (for example, UITabBar, UINavigationBar, UITableView, etc.), which, in combination with Auto Layout, can only make your application run on RTL.

IOS 9 also has an API for inverted images that are related to each other, among several other things.

More information 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

+2
source share

I followed the instructions in this link to get this working, now it works In addition to using the limitations of the automatic layout.

0
source share

All Articles