class ProMotion::NavigationController
Public Instance Methods
popViewControllerAnimated(animated)
click to toggle source
Calls superclass method
# 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()
click to toggle source
# File lib/ProMotion/cocoatouch/navigation_controller.rb, line 18 def preferredInterfaceOrientationForPresentation visibleViewController.preferredInterfaceOrientationForPresentation end
shouldAutorotate()
click to toggle source
# File lib/ProMotion/cocoatouch/navigation_controller.rb, line 9 def shouldAutorotate visibleViewController.shouldAutorotate if visibleViewController end
supportedInterfaceOrientations()
click to toggle source
# File lib/ProMotion/cocoatouch/navigation_controller.rb, line 13 def supportedInterfaceOrientations return UIInterfaceOrientationMaskAll unless visibleViewController visibleViewController.supportedInterfaceOrientations end