iPhone UIWebView width does not fit after zooming operation + UIInterfaceOrientation change

前端 未结 8 1541
庸人自扰
庸人自扰 2020-12-02 19:20

I created a bare bones iPhone app with a UIWebView (Scales Page to Fit = YES, shouldAutorotateToInterfaceOrientation = YES) and loaded a webpage, e.g. https://stackoverflow.

8条回答
  •  甜味超标
    2020-12-02 19:55

    On rotation, try setting the scrollView zoomScale to 0. See my full answer here: UIWebView content not adjusted to new frame after rotation

提交回复
热议问题