Sha256: f33f3b30787a25b1033d87d330edfd60e41da52b19cf6f922e19b1f327610335

Contents?: true

Size: 1.26 KB

Versions: 14

Compression:

Stored size: 1.26 KB

Contents

class ScreenModuleViewController < UIViewController
  include PM::ScreenModule
  title 'Test Title'

  # Get rid of such hackiness when RubyMotion bug is fixed...

  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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ProMotion-1.2.1 spec/helpers/screen_module_view_controller.rb
ProMotion-1.2.0 spec/helpers/screen_module_view_controller.rb
ProMotion-1.1.2 spec/helpers/screen_module_view_controller.rb
ProMotion-1.1.1 spec/helpers/screen_module_view_controller.rb
ProMotion-1.1.0 spec/helpers/screen_module_view_controller.rb
ProMotion-1.1.0.rc1 spec/helpers/screen_module_view_controller.rb
ProMotion-1.0.4 spec/helpers/screen_module_view_controller.rb
ProMotion-1.0.3 spec/helpers/screen_module_view_controller.rb
ProMotion-1.0.2 spec/helpers/screen_module_view_controller.rb
ProMotion-1.0.1 spec/helpers/screen_module_view_controller.rb
ProMotion-1.0.0 spec/helpers/screen_module_view_controller.rb
ProMotion-0.7.8 spec/helpers/screen_module_view_controller.rb
ProMotion-0.7.6 spec/helpers/screen_module_view_controller.rb
ProMotion-0.7.5 spec/helpers/screen_module_view_controller.rb