Instance Method インスタンスメソッド

initWithArray:

Initializes a newly allocated set with the objects that are contained in a given array. 与えられた配列の中に含まれるオブジェクトを持つ、新しくアロケートされた集合を初期化します。

Declaration 宣言

- (instancetype)initWithArray:(NSArray<ObjectType> *)array;

Parameters パラメータ

array

An array of objects to add to the new set. 新しい集合に加える、いくつかのオブジェクトからなる配列。

If the same object appears more than once in array, it is represented only once in the returned ordered set. 同じオブジェクトが一度以上 array に現れるならば、それはただ一度だけこの返される順序集合において表されます。

Return Value 戻り値

An initialized ordered set with the contents of array. The returned ordered set might be different than the original receiver. 配列の内容で初期化された順序集合。返される順序集合は、元のレシーバとは異なるかもしれません。

See Also 参照

Initializing an Ordered Set 順序集合を初期化する

Related Documentation 関連文書