Sha256: c411849e092006e562e4e0eda7b8fc9ca8102111962d36fd1a57202364b2b8f1
Contents?: true
Size: 566 Bytes
Versions: 3
Compression:
Stored size: 566 Bytes
Contents
module ProMotion class NavigationController < UINavigationController def popViewControllerAnimated(animated) super self.viewControllers.last.send(:on_back) if self.viewControllers.last.respond_to?(:on_back) end def shouldAutorotate visibleViewController.shouldAutorotate end def supportedInterfaceOrientations visibleViewController.supportedInterfaceOrientations end def preferredInterfaceOrientationForPresentation visibleViewController.preferredInterfaceOrientationForPresentation end end end
Version data entries
3 entries across 3 versions & 1 rubygems