Yakir Sayada Yakir Sayada - 8 months ago 69
iOS Question

IOS-9 disable right to left in hebrew / arbic

Please advice how to change all the app programatically to right to left.
from iOS 9 apple set the hebrew / arbic region as left to right (mirroring).

Please advice if there is any option to change this ?

Regards Yakir.


Change the interface language to English. Currently it is the only way (unless apple will get convinced it was a bad idea)

Edit: If you want your app to behave "English only" - you can force the locale in the code: In AppDelegate add to didFinishLaunchingWithOptions:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
        NSArray *languages = [[NSUserDefaults standardUserDefaults] objectForKey:@"AppleLanguages"];
        if (![[languages firstObject] isEqualToString:@"en"]) {
            [[NSUserDefaults standardUserDefaults] setObject:@[@"en"] forKey:@"AppleLanguages"];
            [[NSUserDefaults standardUserDefaults] synchronize];