I added an infinite scrolling feature and realized that whenever I reload the uitableview, the view flickers..I am not sure how to fix the flickering at this point. Please help, thanks!
I did see a very similar question, but no solution to it. I tried the one the author posted, but it doesn't not work: "remove the tableview from parent view, reload data, put table view back into parent view" (UITableView reloadData - how to stop flicker)
Code:
[self.tableView reloadData]; 
                Below code worked for me like a charm!
Objective-C
[UIView performWithoutAnimation:^{    [self.tableview reloadData];    [self.tableview beginUpdates];    [self.tableview endUpdates]; }];   Swift 4
UIView.performWithoutAnimation {     self.tableView.reloadData()     self.tableView.beginUpdates()     self.tableView.endUpdates() } 
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With