Instance Method

initWithIndex:

Initializes an index path with a single node.

Declaration

- (instancetype)initWithIndex:(NSUInteger)index;

Parameters

index

Index of the item in node 0 to point to.

Return Value

Initialized NSIndexPath object representing a one-node index path with index.

See Also

Creating and Initializing Index Paths

+ indexPathWithIndex:

Creates a one-node index path.

+ indexPathWithIndexes:length:

Creates an index path with one or more nodes.

- initWithIndexes:length:

Initializes an index path with the given nodes and length.

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