Sha256: 1f6d3a3850beab3340b401ddd48f71389cb69187133023d3bcb201e5cdcc948f

Contents?: true

Size: 591 Bytes

Versions: 10

Compression:

Stored size: 591 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
      visibleViewController.supportedInterfaceOrientations
    end

    def preferredInterfaceOrientationForPresentation
      visibleViewController.preferredInterfaceOrientationForPresentation
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ProMotion-2.6.0 lib/ProMotion/cocoatouch/navigation_controller.rb
ProMotion-2.5.0 lib/ProMotion/cocoatouch/navigation_controller.rb
ProMotion-2.5.0.beta1 lib/ProMotion/cocoatouch/navigation_controller.rb
ProMotion-2.4.2 lib/ProMotion/cocoatouch/navigation_controller.rb
ProMotion-2.4.1 lib/ProMotion/cocoatouch/navigation_controller.rb
ProMotion-2.4.0 lib/ProMotion/cocoatouch/navigation_controller.rb
ProMotion-2.3.1 lib/ProMotion/cocoatouch/navigation_controller.rb
ProMotion-2.3.0 lib/ProMotion/cocoatouch/navigation_controller.rb
ProMotion-2.2.2 lib/ProMotion/cocoatouch/navigation_controller.rb
ProMotion-2.2.1 lib/ProMotion/cocoatouch/navigation_controller.rb