Open bobbyali opened 9 years ago
The function supportedInterfaceOrientations()
only appears to be called when the VC first loads, when inIntro is set to false as a default value. Can't figure out a way to update it after the VC has already loaded.
But even when I remove the conditional and use this code, it doesn't stop rotations from being changed.
override func shouldAutorotate() -> Bool {
println("checking rotations...")
return false
}
override func supportedInterfaceOrientations() -> Int {
println("rotations...")
return Int(UIInterfaceOrientationMask.Portrait.rawValue)
}
Conflict somewhere. Put introview into a separate view.
I want to fix orientation in the EAIntroView to Portrait only (because it's buggy in Landscape), but it's not working. I have this code in the Grid VC but it's not helping.
self.inIntro
is set to true when in the EAIntroView, and false when it finishes.Any thoughts?