Instance Method

isEqualToArray:

Compares the receiving array to another array.

Declaration

- (BOOL)isEqualToArray:(NSArray<ObjectType> *)otherArray;

Parameters

otherArray

An array.

Return Value

YES if the contents of otherArray are equal to the contents of the receiving array, otherwise NO.

Discussion

Two arrays have equal contents if they each hold the same number of objects and objects at a given index in each array satisfy the isEqual: test.

See Also

Comparing Arrays

- firstObjectCommonWithArray:

Returns the first object contained in the receiving array that’s equal to an object in another given array.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software