iOS开发 UIReferenceLibraryViewController(词典)的使用
2017-08-07 15:59
357 查看
UIReferenceLibraryViewController能够实现在自己的应用中使用字典查询词语的含义.
使用:
方法dictionaryHasDefinitionForTerm:去判断词典中是否有所选词的解释
使用:
if ([UIReferenceLibraryViewController dictionaryHasDefinitionForTerm:@"country"]) { UIReferenceLibraryViewController *refer = [[UIReferenceLibraryViewController alloc] initWithTerm:@"country"]; [self presentViewController:refer animated:YES completion:nil]; } else { NSLog(@"不支持"); }
方法dictionaryHasDefinitionForTerm:去判断词典中是否有所选词的解释
相关文章推荐
- UIReferenceLibraryViewController iOS自带的词典controller
- UIReferenceLibraryViewController的使用(调用系统词典)
- 学习IOS开发UI篇--UICollectionViewController的基本使用
- iOS开发UI基础—32直接使用UITableView Controller
- [iOS开发]UISplitViewController的使用
- ios字典功能UIReferenceLibraryViewController
- iOS开发UI篇章使用UItableview完成一个简单的QQ好友列表(一)
- iOS开发UI基础—25UITableview控件使用小结
- IOS开发之UI——UIActivityIndicatorView的详细使用
- iOS开发UI高级—41popoverController使用注意
- iOS开发UI篇—直接使用UITableView Controller
- [ios开发基础之 Core Data[3]]如何使用NSFetchedResultsController 来集成TableView操作
- iOS开发UI基础—27使用UItableview完成一个简单的QQ好友列表(一)
- IOS开发~灵活使用 dismissViewControllerAnimated / dismissModalViewControllerAnimated
- iOS开发UI基础—28使用UItableview完成一个简单的QQ好友列表(二)
- iOS开发 UIPickerView的使用
- iOS开发-设置在使用NavigateController时View的顶部位置
- iOS开发之transitionFromViewController方法的使用
- IOS开发~灵活使用 dismissViewControllerAnimated / dismissModalViewControllerAnimated
- iOS开发UI篇—直接使用UITableView Controller