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
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

#preferredInterfaceOrientationForPresentationObject



19
20
21
# File 'lib/ProMotion/cocoatouch/navigation_controller.rb', line 19

def preferredInterfaceOrientationForPresentation
  visibleViewController.preferredInterfaceOrientationForPresentation
end

#shouldAutorotateObject



11
12
13
# File 'lib/ProMotion/cocoatouch/navigation_controller.rb', line 11

def shouldAutorotate
  visibleViewController.shouldAutorotate
end

#supportedInterfaceOrientationsObject



15
16
17
# File 'lib/ProMotion/cocoatouch/navigation_controller.rb', line 15

def supportedInterfaceOrientations
  visibleViewController.supportedInterfaceOrientations
end