Tells the delegate a row is about to be selected.
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
A table view object informing the delegate about the impending selection.
An index path locating the row in
An index-path object that confirms or alters the selected row. Return an
Index object other than
index if you want another cell to be selected. Return
nil if you don't want the row selected.
The system calls this method after a user has lifted their finger; the row is highlighted on the initial touch, but only selected when the touch withdraws. You can use
UITable to disable the appearance of the cell highlight on the initial touch. The system doesn’t call this method if the rows in the table aren’t selectable. See Handling Row Selection in a Table View for more information on controlling table row selection behavior.