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

Version Path
ProMotion-3.0.0 lib/ProMotion/cocoatouch/navigation_controller.rb
ProMotion-2.8.2 lib/ProMotion/cocoatouch/navigation_controller.rb
ProMotion-2.8.1 lib/ProMotion/cocoatouch/navigation_controller.rb
ProMotion-2.8.0 lib/ProMotion/cocoatouch/navigation_controller.rb
ProMotion-2.7.1 lib/ProMotion/cocoatouch/navigation_controller.rb
ProMotion-2.7.0 lib/ProMotion/cocoatouch/navigation_controller.rb
ProMotion-2.6.1 lib/ProMotion/cocoatouch/navigation_controller.rb