Contents

childIndex(forItem:)

Returns the child index of the specified item within its parent.

Declaration

func childIndex(forItem item: Any) -> Int

Discussion

The performance of this method is O(1) at best and O(n) at worst.

See Also

Getting Related Items