How to present the arabic keyboard while changing the application language to arabic?

房东的猫 提交于 2019-12-23 19:13:12

问题


I have a mobile application which supports the Arabic and English language. So for this i am using two separate storyboard to flip the layout right to left while changing the language(Not sure whether its a good thinking of using two separate storyboard for Arabic and Malayalam. Please do suggest of any other better solution).

But thats not the case i wish to present the user with Arabic keyboard while changing the application language to Arabic for filling the registration form. How to achieve this in Swift 3?

    - (void)reloadStoryboard
{
    UIStoryboard *storyboard;

    switch ([AALanguageManager getCurrentLanguage]) {

        case CurrentLanguageRTL:
            storyboard = [UIStoryboard storyboardWithName:@"StoryboardRTL" bundle:[NSBundle mainBundle]];
            break;
        default:
            storyboard = [UIStoryboard storyboardWithName:@"StoryboardLTR" bundle:[NSBundle mainBundle]];
            break;
    }

    self.window.rootViewController = [storyboard instantiateInitialViewController];
    [self.window makeKeyAndVisible];
}

来源:https://stackoverflow.com/questions/43931861/how-to-present-the-arabic-keyboard-while-changing-the-application-language-to-ar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!