Rotate PDF page with usePageViewController

老子叫甜甜 提交于 2019-12-24 07:28:20

问题


I am working on PDFKit and try to rotate the page. It is rotating good but without using usePageViewController. With usePageViewController it won't update the frame of the page.

// At defining PDFVIEW object
pdfView.displayMode = .singlePageContinuous
pdfView.usePageViewController(true, withViewOptions: nil)
// For rotating screen
pdfView.currentPage?.rotation += 90

without usePageViewController pagination is not working. How to achieve both at same place.

https://i.stack.imgur.com/xifjV.jpg

https://i.stack.imgur.com/HUogU.jpg

来源:https://stackoverflow.com/questions/56939138/rotate-pdf-page-with-usepageviewcontroller

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!