Selects a row in the table view identified by index path, optionally scrolling the row to a location in the table view.
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
An index path identifying a row in the table view.
trueif you want to animate the selection and any change in position;
falseif the change should be immediate.
A constant that identifies a relative position in the table view (top, middle, bottom) for the row when scrolling concludes. See
UITablefor descriptions of valid constants.
View .Scroll Position
Calling this method does not cause the delegate to receive a
table message, nor does it send
selection notifications to observers.
UITable results in no scrolling, rather than the minimum scrolling described for that constant. To scroll to the newly selected row with minimum scrolling, select the row using this method with
UITable, then call