iPhone - Auto resizing UIWebView content do not fit the frame

后端 未结 8 842
太阳男子
太阳男子 2020-12-23 17:19

I\'m generating an UIWebView into my viewDidLoad method, with a tiny size (let\'s say something like 50x70). And then I put it into a super UIView.

I\'d like to ma

8条回答
  •  不知归路
    2020-12-23 17:46

    The answer is: you are already doing this but there are limits.

    Look at the following screenshots:

    Screeshot 1, scalesPageToFit YES and NO

    Both webview have the same width. In the lower one the page fits perfectly.

    enter image description here

    Screeshot 2, scalesPageToFit both YES but smaller widths set

    Both webview try to fit the page but it won't as there is a size limit.

    enter image description here

提交回复
热议问题