I have a _TableView with items , and I want to set automatic refresh,and I don\'t want it to scroll on refresh , lets say user scrolled 2 pages down , and the refre
_TableView
Just set estimatedRowHeight to maximum possible value.
estimatedRowHeight
self.tableView.estimatedRowHeight = 1000 self.tableView.estimatedSectionFooterHeight = 100.0 self.tableView.estimatedSectionHeaderHeight = 500.0
That's it!!
Please do not use FLT_MAX, DBL_MAX value. May be it will crash your app.
FLT_MAX, DBL_MAX