indexPathForSelectedRow
An index path that identifies the row and section of the selected row.
Declaration
var indexPathForSelectedRow: IndexPath? { get }Discussion
The value of this property is an index path identifying the row and section indexes of the selected row, or nil if the index path is invalid. If there are multiple selections, this property contains the first index-path object in the array of row selections; this object has the lowest index values for section and row.