A UIReferenceLibraryViewController object provides a dictionary service to look up the definition of a word or term from within an app. It should not be used to display wordlists, create a standalone dictionary app, or republish the content in any form.


You create and initialize a reference library view controller using the init(term:) method. You pass the term to define as the parameter to this method and the definition is displayed. You can present this view controller modally or as part of another interface. On iPad, you can set the reference library view controller as the content view controller of a UIPopoverController object. Optionally, use the dictionaryHasDefinition(forTerm:) class method to check if a definition is available for a given term before creating an instance—for example, use this method if you want to change the user interface depending on whether a definition is available.


Creating Reference-Library View Controllers

class func dictionaryHasDefinition(forTerm: String)

Returns whether a definition is available for the given term.

init(term: String)

Initializes a newly created reference-library view controller to display the definition of the given term.