I have a MT.Dialog where i add some log informations.
Rows can be of different heights.
How can I make sure, that my MT.Dialog always scroll to the bottom, so that the entire last row is always visible?
BUT …. if user scrolls up the list, then it must not scroll to the bottom when adding new rows.
Any suggestions?
Thanks!
Mojo
Hmm, without knowing more about your implementation or root element structure I can only surmise that its top-level only and not nested. That being said….
…you can simply grab the indexPath of the last row in the array, grab it’s index path and scroll the table view down to it programatically.
FYI, the code to get the indexPath is untested, but should work fine. Make sure you have the following defined at the top of your class 🙂