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
  • 5,020
  • 4
  • 49
  • 75
Aashish Nagar
  • 1,207
  • 1
  • 14
  • 30

1 Answers1

0

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

Lida Zhu
  • 21
  • 6