lib/ProMotion/cocoatouch/navigation_controller.rb in ProMotion-2.6.0 vs lib/ProMotion/cocoatouch/navigation_controller.rb in ProMotion-2.6.1
- old
+ new
@@ -9,9 +9,10 @@
def shouldAutorotate
visibleViewController.shouldAutorotate if visibleViewController
end
def supportedInterfaceOrientations
+ return UIInterfaceOrientationMaskAll unless visibleViewController
visibleViewController.supportedInterfaceOrientations
end
def preferredInterfaceOrientationForPresentation
visibleViewController.preferredInterfaceOrientationForPresentation