Contents

setSelectionIndexPath(_:)

Sets the tree controller’s current selection.

Declaration

func setSelectionIndexPath(_ indexPath: IndexPath?) -> Bool

Parameters

  • indexPath:

    The proposed new selection.

Return Value

Return true if the selection has changed, otherwise false.

Discussion

Attempting to change the selection may cause a commitEditing message which fails, thus denying the selection change.

See Also

Getting the current selection