Sha256: 055fb289e4f950b99207c45e4b9142fb4aa63b0085a027ada0d7302f1b3ef857
Contents?: true
Size: 1.36 KB
Versions: 6
Compression:
Stored size: 1.36 KB
Contents
module ProMotion class ViewController < UIViewController def self.new(args = {}) s = self.alloc.initWithNibName(args[:nib_name] || nil, bundle:args[:bundle] || nil) s.on_create(args) if s.respond_to?(:on_create) s end def loadView super self.send(:on_load) if self.respond_to?(:on_load) 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
6 entries across 6 versions & 1 rubygems