Sha256: 6564d0b8918708c8d8e952e58beea89be859ebb673184be1317685c1e812edcc

Contents?: true

Size: 1.16 KB

Versions: 48

Compression:

Stored size: 1.16 KB

Contents

class MPViewController < UIViewController
  def self.new(args = {})
    self.alloc.initWithNibName(nil, bundle: nil).tap do |screen|
      screen.on_create(args) if screen.respond_to?(:on_create)
    end
  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

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
motion-prime-1.0.7 motion-prime/support/mp_view_controller.rb
motion-prime-1.0.6 motion-prime/support/mp_view_controller.rb
motion-prime-1.0.5 motion-prime/support/mp_view_controller.rb
motion-prime-1.0.4 motion-prime/support/mp_view_controller.rb
motion-prime-1.0.3 motion-prime/support/mp_view_controller.rb
motion-prime-1.0.2 motion-prime/support/mp_view_controller.rb
motion-prime-1.0.1 motion-prime/support/mp_view_controller.rb
motion-prime-1.0.0 motion-prime/support/mp_view_controller.rb
motion-prime-0.9.9.2 motion-prime/support/mp_view_controller.rb
motion-prime-0.9.9.1 motion-prime/support/mp_view_controller.rb
motion-prime-0.9.9 motion-prime/support/mp_view_controller.rb
motion-prime-0.9.8 motion-prime/support/mp_view_controller.rb
motion-prime-0.9.7 motion-prime/support/mp_view_controller.rb
motion-prime-0.9.6 motion-prime/support/mp_view_controller.rb
motion-prime-0.9.5 motion-prime/support/mp_view_controller.rb
motion-prime-0.9.4 motion-prime/support/mp_view_controller.rb
motion-prime-0.9.3 motion-prime/support/mp_view_controller.rb
motion-prime-0.9.2 motion-prime/support/mp_view_controller.rb
motion-prime-0.9.1 motion-prime/support/mp_view_controller.rb
motion-prime-0.9.0 motion-prime/support/mp_view_controller.rb