display specific pdf page in the UIWebview ios

前端 未结 2 1965
攒了一身酷
攒了一身酷 2021-01-15 18:17

I am currently working on a project and I have ios need to display a pdf file. However i want choose the page to display. For example see page 10 of 37 in a UIWebView. I hav

2条回答
  •  星月不相逢
    2021-01-15 18:43

    You can use setContentOffset property of webview to show that page,

    [[webView scrollView] setContentOffset:CGPointMake(0,10*pageheight) animated:YES];
    

    where pageheight=your page height, 10 is your page no,

提交回复
热议问题