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 |
# File 'lib/ProMotion/cocoatouch/navigation_controller.rb', line 4 def popViewControllerAnimated(animated) super self.viewControllers.last.send(:on_back) if self.viewControllers.last.respond_to?(:on_back) end |
#preferredInterfaceOrientationForPresentation ⇒ Object
17 18 19 |
# File 'lib/ProMotion/cocoatouch/navigation_controller.rb', line 17 def preferredInterfaceOrientationForPresentation visibleViewController.preferredInterfaceOrientationForPresentation end |
#shouldAutorotate ⇒ Object
9 10 11 |
# File 'lib/ProMotion/cocoatouch/navigation_controller.rb', line 9 def shouldAutorotate visibleViewController.shouldAutorotate if visibleViewController end |
#supportedInterfaceOrientations ⇒ Object
13 14 15 |
# File 'lib/ProMotion/cocoatouch/navigation_controller.rb', line 13 def supportedInterfaceOrientations visibleViewController.supportedInterfaceOrientations end |