UIWebView cut off at the bottom by UITabBarController

ios, objective-c, uitabbar, uitabbarcontroller, uiwebview

Solution

You can set bottom edge inset to your webView.scrollView.

Like:

self.webView.scrollView.contentInset = UIEdgeInsetsMake(0.0f, 0.0f, *tabbar_height*, 0.0f);

Problem

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!

Original source