Type Method

arrayWithArray:

Creates and returns an array containing the objects in another given array.

Declaration

+ (instancetype)arrayWithArray:(NSArray<ObjectType> *)array;

Parameters

anArray

An array.

Return Value

An array containing the objects in anArray.

See Also

Creating an Array

+ array

Creates and returns an empty array.

+ arrayWithContentsOfFile:

Creates and returns an array containing the contents of the file specified by a given path.

Deprecated
+ arrayWithContentsOfURL:

Creates and returns an array containing the contents specified by a given URL.

Deprecated
+ arrayWithObject:

Creates and returns an array containing a given object.

+ arrayWithObjects:

Creates and returns an array containing the objects in the argument list.

+ arrayWithObjects:count:

Creates and returns an array that includes a given number of objects from a given C array.