我创建了一个pdf文档,并使用PDFKit将其显示在PDFView中。有任何直接的方法可以将文档中的页面显示为分页。
是的,他们有一个名为usePageViewController(enable:options:)
的内置方法你可以在PDFView
的viewDidAppear
对象上使用它,它会在UIPageViewController中显示它。
override func viewDidAppear(_animated: Bool) {
pdfView.usePageViewController(true, withViewOptions: nil)
}