iOSTable.ScrollToRow
From Xojo Documentation
Method
iOSTable.ScrollToRow(section As Integer, row As Integer, animated As Boolean = True, position As ScrollPositions = ScrollPositions.None)
Supported on Mobile(iOS).
Supported on Mobile(iOS).
Scrolls the table so that the requested row is visible. The row's position when scrolling is finished is controlled by the position parameter.
Parameters
| Parameter | Description |
|---|---|
| section | The section containing the row to scroll to. |
| row | The row to scroll to. |
| animated | The scrolling is animated when True. |
| position | Where to position the row in the table after scrolling to it. Refer to the ScrollPositions enum for possible values. |
Sample Code
Scroll to section 2, row 10:
myTable.ScrollToRow(2, 10)
myTable.ScrollToRow(2, 10, True, iOSTable.ScrollPositions.Middle)
myTable.ScrollToRow(2, 10, True, iOSTable.ScrollPositions.Middle)
