WKWebView inside Scroll View

前端 未结 3 1388
遥遥无期
遥遥无期 2021-02-10 16:53

How can I put a WKWebView inside a Scroll View consider that I must have others elements after Web View.

. View ... Scroll View ....... ImageView ....... WKWebView

3条回答
  •  半阙折子戏
    2021-02-10 17:37

    As per the understanding you want webview not to scroll well if the page is bigger than your screen it will scroll right? To show the full page. Although you can change the isscrollingenabled to false from interface builder or from code by using object of scrollview. To set full height give constraint 0,0,0,0 from all sides and it will surely stretch to whole screen

提交回复
热议问题