Instance Method

compare:

Indicates the depth-first traversal order of the receiving index path and another index path.

Declaration

- (NSComparisonResult)compare:(NSIndexPath *)otherObject;

Parameters

indexPath

Index path to compare.

This value must not be nil. If the value is nil, the behavior is undefined.

Return Value

The depth-first traversal ordering of the receiving index path and indexPath.