Edit

Share via


UITableView.AllowsSelection Property

Definition

Whether a row can be selected.

public virtual bool AllowsSelection { [Foundation.Export("allowsSelection")] get; [Foundation.Export("setAllowsSelection:")] set; }
member this.AllowsSelection : bool with get, set

Property Value

true if row selection is allowed, false if not.

Attributes

Remarks

If true (the default) then row selection is allowed. This property only affects cell selection when the table view is not in editing mode. To control selection in edting mode, use AllowsSelectionDuringEditing.

Applies to