How can I implement Apple predictive pane in my own iOS8 keyboard extension?
Apple Custom Keyboard API Custom Keyboard API:
RequestsOpenAccess set BOOL yes, in info.plist there is access to the basic autocorrection lexicon through the UILexicon class. Use this class along with the lexicon of your own design to provide suggestions and autocorrections when users enter text.
But I can not find how to use UILexicon in my user keyboard. I set RequestsOpenAccess to YES :

But still can't access the user dictionary for word sentences, such as the default Apple iOS8 keyboard:

My custom keyboard looks like this:

EDIT:
i Found the requestSupplementaryLexiconWithCompletion that was used for the UILexicon class , like this, I am trying to implement this using the following code:
- (void)viewDidLoad { [super viewDidLoad]; [self requestSupplementaryLexiconWithCompletion:^(UILexicon *appleLex) { appleLexicon = appleLex; NSUInteger lexEntryCount = appleLexicon.entries.count; for(UILexiconEntry *entry in appleLexicon.entries) { NSString *userInput = [entry userInput]; NSString *documentText = [entry documentText]; lable.text=userInput; [lable setNeedsDisplay]; } }]; }
ios iphone ios8 keyboard ios-keyboard-extension
Nitin gohel
source share