Reputation: 1117
I have a view controller with a table view and a refresh control. When I rotate screen during the refresh, refresh control sticks. I've tried to add .endRefreshing() on the viewWillTransition and tableview.refreshData() in vain. None of the solutions I could find works.
Upvotes: 0
Views: 255
Reputation: 11
I have also faced same issue in my application and found work around to un stick refresh control.you can set the tableview contentoffset. it will reset your tableview to up.
self.tableView.setContentOffset(CGPoint.init(x: 0, y: 0), animated: true)
Upvotes: 1