Type Method 型メソッド

predicateWithFormat:argumentArray:

Creates a predicate by substituting the values in a specified array into a format string and parsing the result. 指定された配列の中の値を書式設定文字列へと置き換えてその結果を構文解析することによって、ある述部を作成します。

Declaration 宣言

+ (NSPredicate *)predicateWithFormat:(NSString *)predicateFormat 
                       argumentArray:(NSArray *)arguments;

Parameters パラメータ

predicateFormat

The format string for the new predicate. 新しい述部に対する書式設定文字列。

arguments

The arguments to substitute into predicateFormat. Values are substituted in the order they appear in the array. predicateFormatへと置換ことになる引数。値は、それらが配列の中に現れる順番で置換されます。

Return Value 戻り値

A new predicate by substituting the values in arguments into predicateFormat, and parsing the result. argumentsの中の値をpredicateFormatへと置換する、そして結果を構文解析することによる、新しい述部。

Discussion 議論

For details of the format of the format string and of limitations on variable substitution, see Predicate Format String Syntax. 書式設定文字列の書式設定の、そして変数置換に制限を課すことの詳細として、Predicate Format String Syntaxを見てください。

See Also 参照

Creating a Predicate 述部を作成する