UIWebView dones't resize correctly when orientation change?

后端 未结 7 2093
伪装坚强ぢ
伪装坚强ぢ 2020-12-02 14:11

I have add a webview,a titleLabel and a coverflowView on a viewcontroller\'s view as its subviews, I want it to change size when the orientation change. I have change the we

7条回答
  •  隐瞒了意图╮
    2020-12-02 14:19

    I was also experiencing the problem of the UIWebView contents not sizing properly when switching from landscape to portrait.

    After hunting around for awhile, I found my answer:

    "One way I've found to handle this is to reload the content after the resize. When I say "reload," I don't mean the built-in reload function on UIWebView, I mean the actual call to loadHTMLString: baseURL: (or whichever method you use to load your content initially)." Agent Gold's post on Apple Support forum

提交回复
热议问题