0

I am using setContentOffset method to scroll the table to last cell.But table gets invisible automatically.

 self.tblViewStatus.setContentOffset(CGPoint(x: 0, y: CGFloat.max), animated: false)

is there any other way to scroll the table to last cell ?

Sanoj Kashyap
  • 4,882
  • 4
  • 46
  • 72
Aashish Nagar
  • 1,167
  • 1
  • 11
  • 27

1 Answers1

0

use - (void)scrollToRowAtIndexPath:(NSIndexPath *)indexPath atScrollPosition:(UITableViewScrollPosition)scrollPosition animated:(BOOL)animated

Lida Zhu
  • 21
  • 6