I have an application in iOS that I am trying to localize for RTL. Obviously, the layout should match the language.
To get started, I'm trying to make buttons at the bottom of one screen to change their order when I open the application using a set of rtl language settings.
I use auto-cars, and I added restrictions between the buttons and the view relative to the final / leading horizontal view with the main view of the screen, which I should understand. The drag-n-drop blue line method is used to create constraints. In addition, I used the following code in my main part, as described in another thread:
#if TARGET == TARGET_AR NSUserDefaults * defaults = [NSUserDefaults standardUserDefaults]; [defaults setObject:[NSArray arrayWithObject:@"ar-SA"] forKey:@"AppleLanguages"]; [defaults synchronize]; #endif
This still does not work, and the buttons remain where they were. Any suggestions on how to solve this?
thanks
ios autolayout
Lior z
source share