Initializer

init(leftExpression:rightExpression:customSelector:)

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

Declaration

init(leftExpression lhs: NSExpression, rightExpression rhs: NSExpression, customSelector selector: Selector)

Parameters

lhs

The left hand expression.

rhs

The right hand expression.

selector

The selector to use. The method defined by the selector must take a single argument and return a BOOL value.

Return Value

The receiver, initialized by combining the left and right expressions using selector.

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, modifier: NSComparisonPredicate.Modifier, type: NSComparisonPredicate.Operator, options: NSComparisonPredicate.Options)

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