Class: ProMotion::NavigationController

Inherits:
UINavigationController
  • Object
show all
Defined in:
lib/ProMotion/cocoatouch/navigation_controller.rb

Instance Method Summary collapse

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

#preferredInterfaceOrientationForPresentationObject



17
18
19
# File 'lib/ProMotion/cocoatouch/navigation_controller.rb', line 17

def preferredInterfaceOrientationForPresentation
  visibleViewController.preferredInterfaceOrientationForPresentation
end

#shouldAutorotateObject



9
10
11
# File 'lib/ProMotion/cocoatouch/navigation_controller.rb', line 9

def shouldAutorotate
  visibleViewController.shouldAutorotate if visibleViewController
end

#supportedInterfaceOrientationsObject



13
14
15
# File 'lib/ProMotion/cocoatouch/navigation_controller.rb', line 13

def supportedInterfaceOrientations
  visibleViewController.supportedInterfaceOrientations
end