2

I have a UIWebView in which y origin I set the same as the UINavigationBar (both 0). I have a .95 alpha set on my UINavigationBar, the goal is so that when I scroll the UIWebView up I can sort of see the content of the UIWebView a bit. However the issue is that when I do this the content of the UIWebView starts from the top. How do I make it so that the content when initially start is below the UINavigationBar and not behind

user1120133
  • 3,176
  • 3
  • 46
  • 89
adit
  • 30,916
  • 67
  • 221
  • 365

2 Answers2

1

You could set webView.clipsToBounds = NO;. That could work. Also, since iOS5 you can find the UIScrollView within the webView and set a contentInset value.

See: UIWebView under transparent UINavigationBar

Community
  • 1
  • 1
calimarkus
  • 9,840
  • 2
  • 25
  • 47
0

Try this: If your navigation bar is translucent the web view will start behind the nav bar , if u make it translucent = NO then it starts right below , hep this might help

ravi
  • 389
  • 1
  • 12