Instance Method

index(atPosition:)

Provides the value at a particular node in the index path.

Declaration

func index(atPosition position: Int) -> Int

Parameters

node

Index value of the desired node. Node numbering starts at zero.

Return Value

The index value at node or NSNotFound if the node is outside the range of the index path.

See Also

Working with Indexes

func getIndexes(UnsafeMutablePointer<Int>, range: NSRange)

Copies the indexes stored in the index path from the positions specified by the position range into the specified indexes.

func getIndexes(UnsafeMutablePointer<Int>)

Copies the objects contained in the index path into indexes.

Deprecated