How to get ENTIRE image from UIWebView including offscreen content

后端 未结 4 2019
醉酒成梦
醉酒成梦 2021-01-06 16:55

I have a method I use to get images from a various views in my iOS application for letting users email screens. Most of the screens where I draw are working ok, but when I u

4条回答
  •  梦谈多话
    2021-01-06 17:22

    You could zoom the uiwebview out so that all content fits on the screen...but this will only work if the image is off the screen horizontally. If the UIWebView is longer than the screen then this won't do much.

    [webview.scrollView setZoomScale:webview.scrollView.minimumZoomScale animated:NO];
    

提交回复
热议问题