UIWebView under transparent UINavigationBar

前端 未结 6 1099
醉酒成梦
醉酒成梦 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:13

    I achieved this by setting the UIWebView subviews to not clip to bounds, then I could put a toolbar on top of it and get the desired effect:

    for (UIView *subview in theWebView.subviews) {
        subview.clipsToBounds = NO;
    }
    

提交回复
热议问题