My app has a UITableView
. That UITableView has a header view, which is a UIWebView
.
By default, scroll views have their scrollsToTop
property set to YES
, which will enable the user to tap the status bar to scroll to the top of the scroll view.
When there are two scroll views embedded in one view, that both have their scrollsToTop
property set to YES
, tapping the status bar does nothing.
The solution is to set one of the scrollsToTop
properties to NO
. That re-enables tapping the status bar.
Now here's the problem: UIWebView doesn't expose it's scroll view, and as a result, there is no access to it's scrollsToTop
property. I only want the table view to scroll to the top when the status bar is tapped, not the web view.
Does anyone know how I can achieve this?