NSPredicate
class NSPredicate : NSObject, NSSecureCoding, NSCopying
-
Mechanica
An always
trueNSPredicate.Declaration
Swift
public static let `true`: NSPredicate -
Mechanica
An always
falseNSPredicate.Declaration
Swift
public static let `false`: NSPredicate
-
Mechanica
Declaration
Swift
public func and(_ predicate: NSPredicate) -> NSPredicateParameters
predicateA
NSPredicateobject.Return Value
a
newcompound NSPredicate formed by AND-ingselfwithpredicate. -
Mechanica
Declaration
Swift
public func or(_ predicate: NSPredicate) -> NSPredicateParameters
predicateA
NSPredicateobject.Return Value
a
newcompound NSPredicate formed by OR-ingselfwithpredicate.
-
Mechanica
Returns a
newpredicate formed by AND-ing the two predicates.Declaration
Swift
public static func && (lhs: NSPredicate, rhs: NSPredicate) -> NSPredicateParameters
lhsThe left-hand side of the operation.
rhsThe right-hand side of the operation.
-
Mechanica
Returns a
newpredicate formed by OR-ing the two predicates.Declaration
Swift
public static func || (lhs: NSPredicate, rhs: NSPredicate) -> NSPredicateParameters
lhsThe left-hand side of the operation.
rhsThe right-hand side of the operation.
-
Mechanica
Returns a
newpredicate forme d by NOT-ing a given predicate.Declaration
Swift
public prefix static func ! (predicate: NSPredicate) -> NSPredicateParameters
pThe NSPredicate to negate.
NSPredicate Extension Reference