Type Method

array

Creates and returns an empty array.

Declaration

+ (instancetype)array;

Return Value

An empty array.

Discussion

This method is used by mutable subclasses of NSArray.

See Also

Creating an Array

+ arrayWithArray:

Creates and returns an array containing the objects in another given 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.