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
            Asked
            
        
        
            Active
            
        
            Viewed 3,682 times
        
    2
            
            
         
    
    
        user1120133
        
- 3,244
- 3
- 48
- 90
 
    
    
        adit
        
- 32,574
- 72
- 229
- 373
2 Answers
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.
 
    
    
        Community
        
- 1
- 1
 
    
    
        calimarkus
        
- 9,955
- 2
- 28
- 48
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