我在 UIDocumentInteractionController 中显示一个 pdf 文件,如下所示:
let docController = UIDocumentInteractionController(url: documentsURL)
let url = NSURL(string:"itms-books:");
if UIApplication.shared.canOpenURL(url! as URL) {
docController.delegate = self
docController.presentPreview(animated: true)
}
我需要在显示控制器时自动滚动到最后一页,有没有办法做到这一点?我没有找到一个。感谢任何将提供帮助的人!