if ([UIReferenceLibraryViewController dictionaryHasDefinitionForTerm:word.text]) {
UIReferenceLibraryViewController* ref =
[[UIReferenceLibraryViewController alloc] initWithTerm:word.text];
[self presentViewController:ref animated:YES completion:nil];
}else{
NSLog(@"No definition found");
}
No comments:
Post a Comment