Sha256: 274ea833cb387e195e404faaa58752fd611a9ecf84ac005db31fb31fedb4aaa5
Contents?: true
Size: 663 Bytes
Versions: 7
Compression:
Stored size: 663 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 if visibleViewController end def supportedInterfaceOrientations return UIInterfaceOrientationMaskAll unless visibleViewController visibleViewController.supportedInterfaceOrientations end def preferredInterfaceOrientationForPresentation visibleViewController.preferredInterfaceOrientationForPresentation end end end
Version data entries
7 entries across 7 versions & 1 rubygems