UIWebView under transparent UINavigationBar

前端 未结 6 1092
醉酒成梦
醉酒成梦 2021-02-09 21:30

I have a UIWebView which I want to put under my translucent UINavigationBar. Normally when I put a UIScrollView under a translucent UINavigationBar, I set its contentOffset such

6条回答
  •  生来不讨喜
    2021-02-09 22:27

    The easiest way is to set:

    webView.clipsToBounds = NO;
    webView.scrollView.clipsToBounds = NO;
    

    It work on bouth iOS 7 & 6, and I didn't try, but on iOS 5 probably too

提交回复
热议问题