Contents

setSelectionIndexPaths(_:)

Sets the tree controller’s current selection to the specified index paths.

Declaration

func setSelectionIndexPaths(_ indexPaths: [IndexPath]) -> Bool

Parameters

  • indexPaths:

    An array of Nsindexpath objects specifying the selected objects.

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