I have a view in my app (iOS7) where a have such a view controllers
hierarchy ViewController
->childViewController
->childViewController
->myChildViewController
.
myChildViewController
has a full sized UIWebView
on it. I have a UIButton
to hide UIToolBar
from one of childViewControlle
r. When I press the button - UIWebView
scrollView
changed its content offset
by status bar
hide. How to avoid this behavior?
UIWebView scrollView changed it content offset when status bar hides
1.4k views Asked by Alexander Slabinsky At
2
That should only happen if you've made the
UIWebView
the main view, such asIf you make it a subview instead, it should ignore the offsets:
It may also change if the parent view controller is resized...
Another thing you can try in the view controller that holds the web view: