0

Imagine something like this, where the content size is far less than 90000.0f :

tableView.contentOffset = CGPointMake(0.0f, 90000.0f);

After this is called, my table almost scrolls to the bottom of the view but there is about ~30.0f worth of extra scroll view that I have to move to get the table to actually scroll to the bottom.

How can I programmatically get my table to the bottom?

fansonly
  • 1,150
  • 4
  • 14
  • 29

1 Answers1

0

Did you try scrolling to you last tableViewCell?

//for instance, you have 15 cells
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:14 inSection:0];
[self.tableView scrollToRowAtIndexPath:indexPath
                      atScrollPosition:UITableViewScrollPositionTop
                              animated:YES];
[self.tableView reloadData];
Ty Lertwichaiworawit
  • 2,950
  • 2
  • 23
  • 42