Sunday, 14 September 2014

Dictionary Lookup ( UIReferenceLibraryViewController )


    if ([UIReferenceLibraryViewController dictionaryHasDefinitionForTerm:word.text]) {
        UIReferenceLibraryViewController* ref =
        [[UIReferenceLibraryViewController alloc] initWithTerm:word.text];
        [self presentViewController:ref animated:YES completion:nil];
    }else{

        NSLog(@"No definition found");
   }