UIRefreshController Ending Animation Issue UIRefreshController Ending Animation Issue xcode xcode

UIRefreshController Ending Animation Issue


Try this

[CATransaction begin];[CATransaction setCompletionBlock:^{    // reload tableView after refresh control finish refresh animation    [self.tableView reloadData];}];[self.refreshControl endRefreshing];[CATransaction commit];


To anyone having this issue, you must call your endRefreshing method before you reload the table data. Otherwise when the table updates it will override the refresher and cause it to look buggy.


// stop refreshing[self.refreshControl endRefreshing];// update tableview[self.tableview performSelector:@selector(reloadData) withObject:nil afterDelay:.3];