This is just a test, which i might add it to the app. Well…. I have a tableView.
-
If click
button1, I want the tableView to scroll up automatically to the top. -
If I click
button2I want the tableView to scroll down automatically to the bottom.
How can this be done ? What about Scroll Speed ?
You can also look at the scroll view’s
setContentOffset:animated:method.Going to the top would mean,
and the bottom would be,
You won’t have control over the animation duration.
The only problem with
scrollToRowAtIndexPath:atScrollPosition:animated:is that it might not be helpful when section and table headers are set.