Instance Method

scrollToNearestSelectedRowAtScrollPosition:animated:

Scrolls the table view so that the selected row nearest to a specified position in the table view is at that position.

Declaration

- (void)scrollToNearestSelectedRowAtScrollPosition:(UITableViewScrollPosition)scrollPosition animated:(BOOL)animated;

Parameters

scrollPosition

A constant that identifies a relative position in the table view (top, middle, bottom) for the row when scrolling concludes. See UITableViewScrollPosition for a descriptions of valid constants.

animated

YES if you want to animate the change in position; NO if it should be immediate.

See Also

Scrolling the Table View

- scrollToRowAtIndexPath:atScrollPosition:animated:

Scrolls through the table view until a row identified by index path is at a particular location on the screen.

UITableViewScrollPosition

The position in the table view (top, middle, bottom) to which a given row is scrolled.