0
Dans l'exemple ci-dessous est-il un moyen de rendre l'orientation de lecteurVC pour être portrait et paysage.comment changer l'orientation de viewController qui n'est pas dans le storyboard
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
}
}
ça ne fonctionne pas – Khallad