Created
November 13, 2014 20:52
-
-
Save maxchuquimia/4829f8f7283f5b6c74c2 to your computer and use it in GitHub Desktop.
Print personal information as a list on a custom keyboard
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[self requestSupplementaryLexiconWithCompletion:^(UILexicon *lex){ | |
NSMutableString *s = [NSMutableString new]; | |
for (UILexiconEntry *e in lex.entries) | |
{ | |
[s appendFormat:@"%@ -> %@\n", e.userInput, e.documentText]; | |
} | |
dispatch_async(dispatch_get_main_queue(), ^{ | |
UITextView *textView = [[UITextView alloc] initWithFrame:self.view.bounds]; | |
textView.text = s; | |
[self.view addSubview:textView]; | |
}); | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment