Enumeration

UITableView.ScrollPosition

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

Declaration

enum ScrollPosition : Int

Overview

Topics

Constants

case none

The table view scrolls the row of interest to be fully visible with a minimum of movement. If the row is already fully visible, no scrolling occurs. For example, if the row is above the visible area, the behavior is identical to that specified by UITableView.ScrollPosition.top. This is the default.

case top

The table view scrolls the row of interest to the top of the visible table view.

case middle

The table view scrolls the row of interest to the middle of the visible table view.

case bottom

The table view scrolls the row of interest to the bottom of the visible table view.

See Also

Scrolling the Table View

func scrollToRow(at: IndexPath, at: UITableView.ScrollPosition, animated: Bool)

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

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

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