From fca63ed1e506c0670760c9193c2d33739eae2758 Mon Sep 17 00:00:00 2001 From: Mark Rickert Date: Tue, 4 Jun 2013 17:07:44 -0400 Subject: [PATCH] Support iOS 6 force rotation. --- .../cocoatouch/NavigationController.rb | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/lib/ProMotion/cocoatouch/NavigationController.rb b/lib/ProMotion/cocoatouch/NavigationController.rb index e702a29..cb71fd3 100644 --- a/lib/ProMotion/cocoatouch/NavigationController.rb +++ b/lib/ProMotion/cocoatouch/NavigationController.rb @@ -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