iOSTable/MobileTable ScrollToRow doesnt do anything

As the title suggests, I’ve tried all kinds of variations on the ScrollToRow method for a MobileTable in a screens’ Activating event.

Despite the docs, many of the variations which follow the documentation examples will not even compile, with errors about not matching any decalaration

The code is called, but no matter what the parameters, it opens resolutely with the list at position 0.

current code:

ListOfThreads.ScrollToRow(100,true)

Any ideas?

Extra:

Although nothing happens in Simulator, one of my Testflighters reports it works on device…?

And using ScrollToRow(100,true) was the only syntax I could get working

The last parameter is a scrollPosition.

The docs say to use ScrollPositions. , but that gets unrecognised signature

I tried integer values like 0,1,2 but they did the same.

iOsTable.ScrollPositions.Middle auto-completed, but also didnt work.

Finally realised that the only thing which would compile used

iOSMobileTable.ScrollPositions.Middle

.. in case anyone else ran into that.

I usually use a 100ms timer to delay scroll to row when calling it from the activating event.

Indeed, scrollPositions is an enum defined in iOSMobileTable.

1 Like

Me too now.

Turns out that it fails to move if I try to scroll to the last row, so I’ve taken to scrolling something ‘a few rows away from the last one’ so that it lands in the middle.