Instance Method

initWithTerm:

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

Declaration

- (instancetype)initWithTerm:(NSString *)term;

Parameters

term

The term to define.

Return Value

The newly initialized reference library view controller.

Discussion

If a definition for the term is not available, a localized message is displayed instead. Use the dictionaryHasDefinitionForTerm: class method to determine whether a definition is available before creating instances of this class.

See Also

Creating Reference-Library View Controllers

+ dictionaryHasDefinitionForTerm:

Returns whether a definition is available for the given term.