iPhone – 如何从应用程序中提取ios5的内置字典
ios5有一个内置的字典。 我怎么能从我的应用程序内拉起来? 例如,如果有一个button,当他们点击它时,它会从字典中拉出一个随机单词。
你想要的是UIReferenceLibraryViewController
(一个UIReferenceLibraryViewController
!)
例如:
UIReferenceLibraryViewController *dictController = [[UIReferenceLibraryViewController alloc] initWithTerm:word]; [self presentModalViewController:dictController animated:YES];
“单词”是你想要查找的单词。