IPhone How to ignore a recursive language direction

I created an iPhone app with one UIViewController and developed it in a storyboard. I posted 3 UIImage, each of which showed an image

enter image description here

  • The telephone language system interface is set to English (settings-> general-> international-> language)

Changing the system language interface to Hebrew, launching the application and images are displayed in mirror mode (reverse order), like this

enter image description here

In the size inspector, I unchecked the Respect language direction checkbox from all Horizontal, Trailing & Leading constraints , but that didn't help.

What other ways to disable / or ignore automatic language interface fixes?

+5
source share
1 answer

Thanks @LenaBru I was directed in the right direction

Solution: change all restrictions that begin with horizontal, trailing, leading, center from left to right, and not the final and leading.

Steps:

  • open storyboard → click on the view controller → click on the control → in the utility panel go to the size inspector (ruler)
  • find the restriction (Horizontal, Trailing, Leading, Center) → right-click → Select and Change → when changing the second rule from moving from left to left to right

NOTE. . You have to follow the rules by doing this, and unfortunately there is no way to select all the restrictions and change them together

NOTE 2: if you have a storyboard for each language, then life is easier to go to the correct storyboard and follow steps 1 and 2 and change direction from trailing leading to left right . With this option you can select all the restrictions and change them together

Change for xcode 6.0 and above: double-click on the rule and remove the checkmark from respect language direction , this will change the restriction from horizontal / leading / end / center left / right

+3
source

Source: https://habr.com/ru/post/1202581/


All Articles