iOS 5 : Look Up Definitions Using Dictionary Service

With iOS 5, there is now a dictionary service that you can access to look up definitions of words. UIReferenceLibraryViewController makes it as easy as creating an instance of the class and providing a term/word to lookup. The view controller will handle the display of the definition and managing the UI (scrolling, etc).

// Create the view controller
UIReferenceLibraryViewController *reference = 
  [[[UIReferenceLibraryViewController alloc] initWithTerm:@"homebrew"] autorelease];
 
[self presentModalViewController:reference animated:YES];
}


Continue reading