Sha256: f06440c92a8ed3759f2f88b57ec18579175828d30e08efe27e5e4bfcf266e355

Contents?: true

Size: 1.24 KB

Versions: 14

Compression:

Stored size: 1.24 KB

Contents

module ProMotion
  class ViewController < UIViewController
    def self.new(args = {})
      s = self.alloc.initWithNibName(nil, bundle:nil)
      s.on_create(args) if s.respond_to?(:on_create)
      s
    end

    def viewDidLoad
      super
      self.view_did_load if self.respond_to?(:view_did_load)
    end

    def viewWillAppear(animated)
      super
      self.view_will_appear(animated) if self.respond_to?("view_will_appear:")
    end

    def viewDidAppear(animated)
      super
      self.view_did_appear(animated) if self.respond_to?("view_did_appear:")
    end

    def viewWillDisappear(animated)
      self.view_will_disappear(animated) if self.respond_to?("view_will_disappear:")
      super
    end

    def viewDidDisappear(animated)
      if self.respond_to?("view_did_disappear:")
        self.view_did_disappear(animated)
      end
      super
    end

    def shouldAutorotateToInterfaceOrientation(orientation)
      self.should_rotate(orientation)
    end

    def shouldAutorotate
      self.should_autorotate
    end

    def willRotateToInterfaceOrientation(orientation, duration:duration)
      self.will_rotate(orientation, duration)
    end

    def didRotateFromInterfaceOrientation(orientation)
      self.on_rotate
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ProMotion-0.7.8 lib/ProMotion/cocoatouch/ViewController.rb
ProMotion-0.7.6 lib/ProMotion/cocoatouch/ViewController.rb
ProMotion-0.7.5 lib/ProMotion/cocoatouch/ViewController.rb
ProMotion-0.7.4 lib/ProMotion/cocoatouch/ViewController.rb
ProMotion-0.7.3 lib/ProMotion/cocoatouch/ViewController.rb
ProMotion-0.7.2 lib/ProMotion/cocoatouch/ViewController.rb
ProMotion-0.7.1 lib/ProMotion/cocoatouch/ViewController.rb
ProMotion-0.7.0 lib/ProMotion/cocoatouch/ViewController.rb
ProMotion-0.6.5 lib/ProMotion/cocoatouch/ViewController.rb
ProMotion-0.6.4 lib/ProMotion/cocoatouch/ViewController.rb
ProMotion-0.6.3 lib/ProMotion/cocoatouch/ViewController.rb
ProMotion-0.6.2 lib/ProMotion/cocoatouch/ViewController.rb
ProMotion-0.6.1 lib/ProMotion/cocoatouch/ViewController.rb
ProMotion-0.6.0 lib/ProMotion/cocoatouch/ViewController.rb