如何为PDFKit中的PDFView的pageViewController定义选项字典?
我对此标志感兴趣
UIPageViewController.NavigationOrientation.horizontal
let pdfv = PDFView.init(frame: self.view.frame)
let opt = ?????
pdfv.usePageViewController(true, withViewOptions: opt)
答案 0 :(得分:1)
ViewOptions仅包含2个选项:interPageSpacing
和spineLocation
:https://developer.apple.com/documentation/uikit/uipageviewcontroller/optionskey
示例:pdfv.usePageViewController(true, withViewOptions: ["interPageSpacing": 50])
如果要将pageViewController的方向更改为水平,请使用以下代码:
pdfv.displayDirection = .horizontal
希望这会有所帮助。