Contents

scrollToNearestSelectedRow(at:animated:)

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

Declaration

func scrollToNearestSelectedRow(at scrollPosition: UITableView.ScrollPosition, animated: Bool)

Parameters

  • scrollPosition:

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

  • animated:

    True if you want to animate the change in position; False if it should be immediate.

See Also

Scrolling the table view