Class: ProMotion::XlFormViewController
- Inherits:
-
XLFormViewController
- Object
- XLFormViewController
- ProMotion::XlFormViewController
- Defined in:
- lib/ProMotion/XLForm/xl_form_view_controller.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
- #class_handles_delegates? ⇒ Boolean
- #didRotateFromInterfaceOrientation(orientation) ⇒ Object
- #loadView ⇒ Object
- #shouldAutorotate ⇒ Object
- #shouldAutorotateToInterfaceOrientation(orientation) ⇒ Object
- #viewDidAppear(animated) ⇒ Object
- #viewDidDisappear(animated) ⇒ Object
- #viewDidLoad ⇒ Object
- #viewWillAppear(animated) ⇒ Object
- #viewWillDisappear(animated) ⇒ Object
- #willRotateToInterfaceOrientation(orientation, duration: duration) ⇒ Object
Class Method Details
.new(args = {}) ⇒ Object
8 9 10 11 12 |
# File 'lib/ProMotion/XLForm/xl_form_view_controller.rb', line 8 def self.new(args = {}) s = self.alloc.init s.screen_init(args) if s.respond_to?(:screen_init) s end |
Instance Method Details
#class_handles_delegates? ⇒ Boolean
4 5 6 |
# File 'lib/ProMotion/XLForm/xl_form_view_controller.rb', line 4 def class_handles_delegates? true end |
#didRotateFromInterfaceOrientation(orientation) ⇒ Object
55 56 57 |
# File 'lib/ProMotion/XLForm/xl_form_view_controller.rb', line 55 def didRotateFromInterfaceOrientation(orientation) self.on_rotate end |
#loadView ⇒ Object
14 15 16 |
# File 'lib/ProMotion/XLForm/xl_form_view_controller.rb', line 14 def loadView self.respond_to?(:load_view) ? self.load_view : super end |
#shouldAutorotate ⇒ Object
47 48 49 |
# File 'lib/ProMotion/XLForm/xl_form_view_controller.rb', line 47 def shouldAutorotate self.should_autorotate end |
#shouldAutorotateToInterfaceOrientation(orientation) ⇒ Object
43 44 45 |
# File 'lib/ProMotion/XLForm/xl_form_view_controller.rb', line 43 def shouldAutorotateToInterfaceOrientation(orientation) self.should_rotate(orientation) end |
#viewDidAppear(animated) ⇒ Object
28 29 30 31 |
# File 'lib/ProMotion/XLForm/xl_form_view_controller.rb', line 28 def viewDidAppear(animated) super self.view_did_appear(animated) if self.respond_to?("view_did_appear:") end |
#viewDidDisappear(animated) ⇒ Object
38 39 40 41 |
# File 'lib/ProMotion/XLForm/xl_form_view_controller.rb', line 38 def viewDidDisappear(animated) self.view_did_disappear(animated) if self.respond_to?("view_did_disappear:") super end |
#viewDidLoad ⇒ Object
18 19 20 21 |
# File 'lib/ProMotion/XLForm/xl_form_view_controller.rb', line 18 def viewDidLoad super self.view_did_load if self.respond_to?(:view_did_load) end |
#viewWillAppear(animated) ⇒ Object
23 24 25 26 |
# File 'lib/ProMotion/XLForm/xl_form_view_controller.rb', line 23 def viewWillAppear(animated) super self.view_will_appear(animated) if self.respond_to?("view_will_appear:") end |
#viewWillDisappear(animated) ⇒ Object
33 34 35 36 |
# File 'lib/ProMotion/XLForm/xl_form_view_controller.rb', line 33 def viewWillDisappear(animated) self.view_will_disappear(animated) if self.respond_to?("view_will_disappear:") super end |
#willRotateToInterfaceOrientation(orientation, duration: duration) ⇒ Object
51 52 53 |
# File 'lib/ProMotion/XLForm/xl_form_view_controller.rb', line 51 def willRotateToInterfaceOrientation(orientation, duration: duration) self.will_rotate(orientation, duration) end |