Initializer

init(leftExpression:rightExpression:modifier:type:options:)

Initializes a predicate to a given type formed by combining given left and right expressions using a given modifier and options.

Declaration

init(leftExpression lhs: NSExpression, rightExpression rhs: NSExpression, modifier: NSComparisonPredicate.Modifier, type: NSComparisonPredicate.Operator, options: NSComparisonPredicate.Options = [])

Parameters

lhs

The left hand expression.

rhs

The right hand expression.

modifier

The modifier to apply.

type

The predicate operator type.

options

The options to apply (see NSComparisonPredicate.Options). For no options, pass 0.

Return Value

The receiver, initialized to a predicate of type type formed by combining the left and right expressions using the modifier and options.

See Also

Creating Comparison Predicates

Displaying Searchable Content by Using a Search Controller

Create a user interface with searchable content in a table view.

init(leftExpression: NSExpression, rightExpression: NSExpression, customSelector: Selector)

Initializes a predicate formed by combining given left and right expressions using a given selector.