I'm trying to allow rotation in my project (swift 3) only for one UIViewController. I use this code, but it doesn't work for me. What should i paste in my VC to allow user rotate it, but forbid to rotate all other VC-s? I have enabled Portrait Device Orientation in General settings of my project
override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
return UIInterfaceOrientationMask.all
}
override var shouldAutorotate: Bool {
return false
}