我正在使用 UILexicon 来获取自定义键盘中的建议。以下是代码:
-(void) keyTapped:(UIButton*)button {
[self requestSupplementaryLexiconWithCompletion:^(UILexicon *lexicon){
// self.lexicon = lexicon;
NSLog(@"%@",lexicon.entries);
for (UILexiconEntry* entry in lexicon.entries) {
NSLog(@"%@=%@",entry.userInput,entry.documentText);
}
int i=0;
}];
}
但它总是返回相同的条目数组。谁能建议我如何使用它。如果有效,我会标记您的答案是否正确。谢谢。