I am facing an unexpected problem with my tableview for UITableViewController. Testing in iOS 9.2
I have enabled "refreshing" for the UITableViewController in storyboard and attached it's IBAction for valueChanged. Note that the tableview has section headers using the "Plain" style and custom height of 45.
The problem is that usually you will expect to pull down the tableview considerable amount for it to trigger the refresh control and start spinning.
However in my scenario however, even a tiny bit of scroll makes the refresh control to show up and start spinning. Like literally 2 centimeters and that will make it appear. It's even weird that it automatically expands in height even though I haven't even pulled the tableview enough to trigger the refresh.
Also note that even though it starts spinning completely and automatically ends spinning too but my method linked in the IBAction for the refresh control doesn't actually get triggered yet.
For example I am scrolling up slowly and as soon as I am about to reach the top, the refresh control will show up and move the tableview down, start spinning, stop spinning. All this without pulling the tableview considerable amount.
Note that in my code, I don't have "beginRefreshing" anywhere at all. Also I don't have any "scrollViewDidScroll" or "scrollViewDidDrag" etc methods to trigger the refresh control.
I have never seen this sort of issue at all. I can't use a custom ViewController with custom TableView due to other reasons, so need to fix this.
I was able to resolve it by deleting the app and reinstalling it after cleaning and rebuilding. Very weird problem which I spent lot of time but now it's fixed!