Class: ProMotion::XlFormViewController

Inherits:
XLFormViewController
  • Object
show all
Defined in:
lib/ProMotion/XLForm/xl_form_view_controller.rb

Direct Known Subclasses

XLFormScreen

Class Method Summary collapse

Instance Method Summary collapse

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

Returns:

  • (Boolean)


4
5
6
# File 'lib/ProMotion/XLForm/xl_form_view_controller.rb', line 4

def class_handles_delegates?
  true
end

#didRotateFromInterfaceOrientation(orientation) ⇒ Object



61
62
63
# File 'lib/ProMotion/XLForm/xl_form_view_controller.rb', line 61

def didRotateFromInterfaceOrientation(orientation)
  self.on_rotate
end

#initObject



14
15
16
17
18
# File 'lib/ProMotion/XLForm/xl_form_view_controller.rb', line 14

def init
  super.tap do
    screen_init if respond_to?(:screen_init)
  end
end

#loadViewObject



20
21
22
# File 'lib/ProMotion/XLForm/xl_form_view_controller.rb', line 20

def loadView
  self.respond_to?(:load_view) ? self.load_view : super
end

#shouldAutorotateObject



53
54
55
# File 'lib/ProMotion/XLForm/xl_form_view_controller.rb', line 53

def shouldAutorotate
  self.should_autorotate
end

#shouldAutorotateToInterfaceOrientation(orientation) ⇒ Object



49
50
51
# File 'lib/ProMotion/XLForm/xl_form_view_controller.rb', line 49

def shouldAutorotateToInterfaceOrientation(orientation)
  self.should_rotate(orientation)
end

#viewDidAppear(animated) ⇒ Object



34
35
36
37
# File 'lib/ProMotion/XLForm/xl_form_view_controller.rb', line 34

def viewDidAppear(animated)
  super
  self.view_did_appear(animated) if self.respond_to?("view_did_appear:")
end

#viewDidDisappear(animated) ⇒ Object



44
45
46
47
# File 'lib/ProMotion/XLForm/xl_form_view_controller.rb', line 44

def viewDidDisappear(animated)
  self.view_did_disappear(animated) if self.respond_to?("view_did_disappear:")
  super
end

#viewDidLoadObject



24
25
26
27
# File 'lib/ProMotion/XLForm/xl_form_view_controller.rb', line 24

def viewDidLoad
  super
  self.view_did_load if self.respond_to?(:view_did_load)
end

#viewWillAppear(animated) ⇒ Object



29
30
31
32
# File 'lib/ProMotion/XLForm/xl_form_view_controller.rb', line 29

def viewWillAppear(animated)
  super
  self.view_will_appear(animated) if self.respond_to?("view_will_appear:")
end

#viewWillDisappear(animated) ⇒ Object



39
40
41
42
# File 'lib/ProMotion/XLForm/xl_form_view_controller.rb', line 39

def viewWillDisappear(animated)
  self.view_will_disappear(animated) if self.respond_to?("view_will_disappear:")
  super
end

#willRotateToInterfaceOrientation(orientation, duration: duration) ⇒ Object



57
58
59
# File 'lib/ProMotion/XLForm/xl_form_view_controller.rb', line 57

def willRotateToInterfaceOrientation(orientation, duration: duration)
  self.will_rotate(orientation, duration)
end