How to present Arabic keyboard when changing app language to Arabic?

I have a mobile app that supports Arabic and English. So for this I use two separate storyboards to flip the layout from right to left when changing the language (not sure if it uses two separate storyboards well for Arabic and Malayalam. Please suggest another better solution).

But this is not the case where I want to present the user with an Arabic keyboard when changing the language of the Arabic application to fill out the registration form. How do I 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];
}

      

+3


source to share





All Articles