UIWebView does not scale content to fit

前端 未结 11 904
忘了有多久
忘了有多久 2020-11-29 00:21

I have a webview which is the top window in the hierarchy and has been declared as shown below. However, it does not scale pages to fit. Pages are top left aligned, but are

11条回答
  •  迷失自我
    2020-11-29 00:48

    In xCode 8.3.3, go to the storyboard of the view/scene where the web view is located and check Scale Page to Fit in the attributes inspector section . Also select Scale to Fill as the content mode.

提交回复
热议问题