I had this problem and dealt with it all day.
I use static cells and reloadData causes the wrong loading, it only displays visible cells and removes others. I noticed that when I scrolled down (y in a negative value) the cells where it loaded correctly, so I wrote this code and it worked, although I do not like to skip it that way.
Shoot if you find the best solution.
-(void)reloadTableView{ CGPoint point = self.tableSettings.tableView.contentOffset; [self.tableSettings.tableView reloadData]; [UIView animateWithDuration:.001f animations:^{ [self.tableSettings.tableView setContentOffset:CGPointMake(point.x, -10)]; } completion:^(BOOL finished) { [UIView animateWithDuration:.001f animations:^{ [self.tableSettings.tableView setContentOffset:point]; } completion:^(BOOL finished) { }]; }]; }
Arben Pnishi Mar 15 '16 at 10:12 2016-03-15 10:12
source share