Controls change their position

Hi


I have a strange problem with the app.

The problem usually occurs in the first launch of the application through the xcode or after installing the ipa.

The positions of the controls in the app are turned over.

For example: in navigation bar if the back button is always on the left and the menu button on the right then they change positions - the menu button moves to the left side and the back button moves to the right side and so on ...

I use story board with autolayout, the controls contain constraints. The constraints were marked not to be respect to language, so the problem is less evident in the controls themselves.


I tried Google it but found no meaningful information.

I will confirm in advance any answer, help or information.

Replies

in conclution -

this code :

[[UINavigationBar appearance] setSemanticContentAttribute:UISemanticContentAttributeForceLeftToRight];

resolve problem for positions of controls in UINavigationBar but it affects on the side navigation of opening screens.

myBar.makeTextWritingDirectionLeftToRight(nil) - I tries it and not help for me.

so with this code :

[[UINavigationBar appearance] setSemanticContentAttribute:UISemanticContentAttributeForceLeftToRight];

Is there a solution for problem of side navigation?

I cannot do much more, very sorry.


But here is a link that could be useful, I hope:

h ttps://stackoverflow.com/questions/32932463/rtl-language-behavior-in-ios-9