Class

UIReferenceLibraryViewController

A view controller that displays a standard interface for looking up the definition of a word or term.

Declaration

class UIReferenceLibraryViewController : UIViewController

Overview

A UIReferenceLibraryViewController object 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.

Topics

Creating Reference-Library View Controllers

class func dictionaryHasDefinition(forTerm: String) -> Bool

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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software