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

Version Path
ProMotion-2.2.0 lib/ProMotion/cocoatouch/navigation_controller.rb
ProMotion-2.1.0 lib/ProMotion/cocoatouch/navigation_controller.rb
ProMotion-2.1.0.beta1 lib/ProMotion/cocoatouch/navigation_controller.rb