0
にないviewControllerの向きを変更する方法は、readerVCの向きを縦向きと横向きにする方法があります。以下の例では、ストーリーボード
func loadReader(filePaht : String) {
let document = ReaderDocument(filePath: filePaht, password: nil)
if document != nil {
let readerVC = ReaderViewController(readerDocument: document)
readerVC?.delegate = self
readerVC?.modalTransitionStyle = UIModalTransitionStyle.crossDissolve
readerVC?.modalPresentationStyle = UIModalPresentationStyle.fullScreen
self.navigationController?.pushViewController(readerVC!, animated: true)
UIApplication.shared.isStatusBarHidden = true
}
}
これは機能しません – Khallad