ios5 has a built in dictionary. How can I pull it up from within my app? For example, if there was a button, and when they click it, it pulls up a random word from the dictionary.
What you want is the UIReferenceLibraryViewController
(bit of a mouthfull!)
eg:
UIReferenceLibraryViewController *dictController = [[UIReferenceLibraryViewController alloc] initWithTerm:word];
[self presentModalViewController:dictController animated:YES];
where "word" is the word you want to lookup.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.