Contents

allowsSelection

A Boolean value that determines whether users can select a row.

Declaration

var allowsSelection: Bool { get set }

Mentioned in

Discussion

If the value of this property is true (the default), users can select rows. If you set it to false, they can’t select rows. Setting this property affects cell selection only when the table view isn’t in editing mode. If you want to restrict selection of cells in editing mode, use allowsSelectionDuringEditing.

See Also

Selecting rows