Initializes a predicate formed by combining given left and right expressions using a given selector.
SDKs
- iOS 3.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
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
.