I have a UITabBarController at the bottom of my application and for one view I would like to display many component and I have a UIWebView and at the bottom I have my UITabBarController. My issue is that my UIWebView is cut off at the bottom by my UITabBarController because in my .xib my UIWebView take all the remaining space.
How can I solve that programmatically that my WebView knows when she must stop to display (just before the top of my UITabBarController) ? I would like a solution for IOS6/7 please.
Thank you very much!
You can set bottom edge inset to your webView.scrollView.
Like:
self.webView.scrollView.contentInset = UIEdgeInsetsMake(0.0f, 0.0f, *tabbar_height*, 0.0f);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With