Instance Property

predicateFormat

The predicate's format string.

Declaration

var predicateFormat: String { get }

Discussion

The return value of this property is not guaranteed to be the same as the string used to create the predicate using predicateWithFormat: or similar methods.

You cannot use this method to create a persistent representation of a predicate suitable for recreating the original predicate. If you need a persistent representation of a predicate, create an archive instead, as described in Object archiving (NSPredicate adopts the NSCoding protocol).

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software