lib/ProMotion/cocoatouch/navigation_controller.rb in ProMotion-2.0.0 vs lib/ProMotion/cocoatouch/navigation_controller.rb in ProMotion-2.0.1

- old
+ new

@@ -1,7 +1,15 @@ module ProMotion class NavigationController < UINavigationController + + def popViewControllerAnimated(animated) + if self.viewControllers[-2].respond_to? :on_back + self.viewControllers[-2].send(:on_back) + end + super animated + end + def shouldAutorotate visibleViewController.shouldAutorotate end def supportedInterfaceOrientations @@ -9,7 +17,8 @@ end def preferredInterfaceOrientationForPresentation visibleViewController.preferredInterfaceOrientationForPresentation end + end end