Contents

parentRow(forRow:)

Returns the index of the parent of a given row.

Declaration

func parentRow(forRow rowIndex: Int) -> Int

Parameters

  • rowIndex:

    The index of a row in the receiver.

Return Value

The index of the parent of the row at rowIndex. If the row at rowIndex is a root row, returns -1.

See Also

Obtaining Row Information