I want to have a transparent UIToolBar
over a UIWebView
, so that the user gets a wider perspective and overview.
However, when I do this, you cannot see the bottom of the page. I thought about setting an offset at the bottom, but that can't be trusted, as the level of zoom may vary (and each pixel will be worth less).
How can I make the webView
scroll and stop at the top edge of the UIToolBar
?
I tried out Emils solution, but it doesn't work for iOS7 since it there inherits from an UIWebViewScrollView
. So, adapted his code to the following:
for (id view in [self.webView subviews]){
if ([view respondsToSelector:@selector(setContentInset:)]){
[(UIScrollView *)view setContentInset:UIEdgeInsetsMake(0, 0, 44, 0)];
}
}