class ProMotion::ViewController

Public Class Methods

new(args = {}) click to toggle source
# File lib/ProMotion/cocoatouch/view_controller.rb, line 3
def self.new(args = {})
  s = self.alloc.initWithNibName(args[:nib_name] || nil, bundle:args[:bundle] || nil)
  s.screen_init(args) if s.respond_to?(:screen_init)
  s
end

Public Instance Methods

didReceiveMemoryWarning() click to toggle source
Calls superclass method
# File lib/ProMotion/cocoatouch/view_controller.rb, line 44
def didReceiveMemoryWarning
  self.did_receive_memory_warning if self.respond_to?(:did_receive_memory_warning)
  super
end
didRotateFromInterfaceOrientation(orientation) click to toggle source
# File lib/ProMotion/cocoatouch/view_controller.rb, line 61
def didRotateFromInterfaceOrientation(orientation)
  self.on_rotate
end
init() click to toggle source
Calls superclass method
# File lib/ProMotion/cocoatouch/view_controller.rb, line 9
def init
  super.tap do
    screen_init if respond_to?(:screen_init)
  end
end
loadView() click to toggle source
Calls superclass method
# File lib/ProMotion/cocoatouch/view_controller.rb, line 15
def loadView
  self.respond_to?(:load_view) ? self.load_view : super
end
shouldAutorotate() click to toggle source
# File lib/ProMotion/cocoatouch/view_controller.rb, line 53
def shouldAutorotate
  self.should_autorotate
end
shouldAutorotateToInterfaceOrientation(orientation) click to toggle source
# File lib/ProMotion/cocoatouch/view_controller.rb, line 49
def shouldAutorotateToInterfaceOrientation(orientation)
  self.should_rotate(orientation)
end
viewDidAppear(animated) click to toggle source
Calls superclass method
# File lib/ProMotion/cocoatouch/view_controller.rb, line 29
def viewDidAppear(animated)
  super
  self.view_did_appear(animated) if self.respond_to?("view_did_appear:")
end
viewDidDisappear(animated) click to toggle source
Calls superclass method
# File lib/ProMotion/cocoatouch/view_controller.rb, line 39
def viewDidDisappear(animated)
  self.view_did_disappear(animated) if self.respond_to?("view_did_disappear:")
  super
end
viewDidLoad() click to toggle source
Calls superclass method
# File lib/ProMotion/cocoatouch/view_controller.rb, line 19
def viewDidLoad
  super
  self.view_did_load if self.respond_to?(:view_did_load)
end
viewWillAppear(animated) click to toggle source
Calls superclass method
# File lib/ProMotion/cocoatouch/view_controller.rb, line 24
def viewWillAppear(animated)
  super
  self.view_will_appear(animated) if self.respond_to?("view_will_appear:")
end
viewWillDisappear(animated) click to toggle source
Calls superclass method
# File lib/ProMotion/cocoatouch/view_controller.rb, line 34
def viewWillDisappear(animated)
  self.view_will_disappear(animated) if self.respond_to?("view_will_disappear:")
  super
end
willRotateToInterfaceOrientation(orientation, duration:duration) click to toggle source
# File lib/ProMotion/cocoatouch/view_controller.rb, line 57
def willRotateToInterfaceOrientation(orientation, duration:duration)
  self.will_rotate(orientation, duration)
end