Instance Property

indexPathsForSelectedRows

The index paths representing the selected rows.

Declaration

var indexPathsForSelectedRows: [IndexPath]? { get }

Discussion

The value of this property is an array of index-path objects each identifying a row through its section and row index. The value of this property is nil if there are no selected rows.

See Also

Selecting Rows

var indexPathForSelectedRow: IndexPath?

An index path identifying the row and section of the selected row.

func selectRow(at: IndexPath?, animated: Bool, scrollPosition: UITableView.ScrollPosition)

Selects a row in the table view identified by index path, optionally scrolling the row to a location in the table view.

func deselectRow(at: IndexPath, animated: Bool)

Deselects a given row identified by index path, with an option to animate the deselection.

var allowsSelection: Bool

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

var allowsMultipleSelection: Bool

A Boolean value that determines whether users can select more than one row outside of editing mode.

var allowsSelectionDuringEditing: Bool

A Boolean value that determines whether users can select cells while the table view is in editing mode.

var allowsMultipleSelectionDuringEditing: Bool

A Boolean value that controls whether users can select more than one cell simultaneously in editing mode.

class let selectionDidChangeNotification: NSNotification.Name

Posted when the selected row in the posting table view changes.