I am using this solution (https://stackoverflow.com/a/25786928) to detect all custom keyboards activated in Settins app (iOS 8):
- (void)printoutAllActiveKeyboards {
// Array of all active keyboards
NSArray *keyboards = [[[NSUserDefaults standardUserDefaults] dictionaryRepresentation] objectForKey:@"AppleKeyboards"];
for (NSString *keyboard in keyboards)
NSLog(@"Custom keyboard: %@", keyboard);
}
But this in not enough for my project - I need to know which custom keyboard is currently chosen by the user for text entering. I have research stackoverflow and other resources but not found any solution for this. Is there any way to detect in my app which custom keyboard in currently chosen for text entering?
Thank you!