Contents

init(format:arguments:)

Creates a predicate by substituting the values in an argument list into a format string and parsing the result.

Declaration

init(format predicateFormat: String, arguments argList: CVaListPointer)

Parameters

  • predicateFormat:

    The format string for the new predicate.

  • argList:

    The arguments to substitute into predicateFormat. Values are substituted in the order they appear in the argument list.

Return Value

A new predicate by substituting the values in argList into predicateFormat and parsing the result.

Discussion

For details of the format of the format string and of limitations on variable substitution, see Predicate Format String Syntax.

See Also

Creating a Predicate