lib/ProMotion/cocoatouch/NavigationController.rb in ProMotion-0.7.2 vs lib/ProMotion/cocoatouch/NavigationController.rb in ProMotion-0.7.3

- old
+ new

@@ -1,7 +1,15 @@ module ProMotion - class NavigationController < UINavigationController - def shouldAutorotate - visibleViewController.shouldAutorotate - end - end + class NavigationController < UINavigationController + def shouldAutorotate + visibleViewController.shouldAutorotate + end + + def supportedInterfaceOrientations + visibleViewController.supportedInterfaceOrientations + end + + def preferredInterfaceOrientationForPresentation + visibleViewController.preferredInterfaceOrientationForPresentation + end + end end