Class: ProMotion::NavigationController
- Inherits:
-
UINavigationController
- Object
- UINavigationController
- ProMotion::NavigationController
- Defined in:
- lib/ProMotion/cocoatouch/navigation_controller.rb
Instance Method Summary collapse
- #popViewControllerAnimated(animated) ⇒ Object
- #preferredInterfaceOrientationForPresentation ⇒ Object
- #shouldAutorotate ⇒ Object
- #supportedInterfaceOrientations ⇒ Object
Instance Method Details
#popViewControllerAnimated(animated) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/ProMotion/cocoatouch/navigation_controller.rb', line 4 def popViewControllerAnimated(animated) if self.viewControllers[-2].respond_to? :on_back self.viewControllers[-2].send(:on_back) end super animated end |
#preferredInterfaceOrientationForPresentation ⇒ Object
19 20 21 |
# File 'lib/ProMotion/cocoatouch/navigation_controller.rb', line 19 def preferredInterfaceOrientationForPresentation visibleViewController.preferredInterfaceOrientationForPresentation end |
#shouldAutorotate ⇒ Object
11 12 13 |
# File 'lib/ProMotion/cocoatouch/navigation_controller.rb', line 11 def shouldAutorotate visibleViewController.shouldAutorotate end |
#supportedInterfaceOrientations ⇒ Object
15 16 17 |
# File 'lib/ProMotion/cocoatouch/navigation_controller.rb', line 15 def supportedInterfaceOrientations visibleViewController.supportedInterfaceOrientations end |