I have a UITableViewController.
I have enabled the 'refreshing' property in attribute inspector.
In viewDidLoad I have assigned a selector (i.e. pull to refresh action).
In the pull to refresh action, as the last step, I invoke refreshControl.endRefreshing()
After refresh action, table returns to its original position on any device using iOS < v10. Prior to iOS 10 it worked without an issue.
Still using Swift 2.2.
Additional info: The Pull to Refresh triggers a check if data download is needed. If not, it raise an alert, that only has an "OK" action to dismiss the alert. The alert is managed using:
self.presentViewController(alert, animated: true, completion: nil)
Could it be that because the table does not return to its original place before the alert is triggered, it get stuck in the last know position?
If so, is there away to ensure the table goes back to its original position without having to call refreshControl.endRefreshing()
just before the alert appears?
Thoughts?