How to disable UIWebview horizontal scrolling?

前端 未结 7 1237
长情又很酷
长情又很酷 2021-02-05 14:48

I\'ve tried disabling it by inserting:


into my HTML string, and a dozen variations of th

7条回答
  •  一生所求
    2021-02-05 15:03

    My version, a common solution:

    - (void)webViewDidFinishLoad:(UIWebView *)webView {
    
    [webView.scrollView setContentSize: CGSizeMake(webView.frame.size.width, webView.scrollView.contentSize.height)];
    
    }
    

提交回复
热议问题