I have an app in iOS which I'm trying to localise for a RTL language. Obviously, the layout need to correspond with the language.
To get started, I'm trying to make to buttons in the bottom of one screen to change their order when opening the app with the rtl language locale set.
I use auto-layouts and I added constraints between the buttons and the view regarding trailing / leading horizontal view setting with the main view of the screen, which is what I understood should be done. Used the drag-n-drop blue line method for making the constraints. Also, I used the following code in my main as instructed by 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 stay where they were. Any suggestions on how to solve this?
Thanks