I have several view controllers with one or multiple scrollviews. Although I have explicitly set the scrollsToTop flags in view controllers with more than one scroll view, some scroll views refuse to scroll up when I tap the status bar.
After pushing another view controller and popping it the gesture sometimes works in the view it previously hasn’t.
It’s very confusing and I just don’t know what the problem is. How can this issue effectively be debugged? Is there a global (private) notification for the status bar tap so I could scroll the views manually?
I have used code like the following to debug this scenario, before:
Depending on how many UIScrollViews you find, you can modify that code to help debug your particular situation.
Some ideas:
Ideally, you should only find a single UIScrollView in the window hierarchy that has scrollsToTop set to YES.