Is there a way to programmatically scroll to a PDF page within a UIWebView?

前端 未结 5 742
野的像风
野的像风 2020-12-08 23:49

It is possible to use JavaScript to set the pixel y-offset of a UIWebView, e.g.:

[webView stringByEvaluatingJavaScriptFromString:[NSString strin         


        
5条回答
  •  暖寄归人
    2020-12-09 00:24

    I think that you'll have to load and display the PDF yourself using the PDF APIs rather than UIWebView. Here is an possible idea of how to simulate snapping scrolling to rectangular grid boundaries which may help you make the experience more like a UIWebView for your users.

    iPhone sdk Cocoa Touch - Pass touches down from parent UIView to child UIScrollview

提交回复
热议问题