Class: UIViewController
- Inherits:
-
Object
show all
- Defined in:
- lib/project/ext/ui_view_controller.rb
Class Method Summary
collapse
Instance Method Summary
collapse
-
#append(view_or_constant, style = nil, opts = {}) ⇒ Object
-
#append!(view_or_constant, style = nil, opts = {}) ⇒ Object
-
#build(view_or_constant, style = nil, opts = {}) ⇒ Object
-
#build!(view_or_constant, style = nil, opts = {}) ⇒ Object
-
#color ⇒ Object
-
#create(view_or_constant, style = nil, opts = {}) ⇒ Object
-
#create!(view_or_constant, style = nil, opts = {}) ⇒ Object
-
#didRotateFromInterfaceOrientation(orientation) ⇒ Object
-
#font ⇒ Object
-
#image ⇒ Object
-
#on_load ⇒ Object
-
#on_rotate(orientation) ⇒ Object
-
#originalViewDidLoad ⇒ Object
-
#prepend(view_or_constant, style = nil, opts = {}) ⇒ Object
-
#prepend!(view_or_constant, style = nil, opts = {}) ⇒ Object
-
#reapply_styles ⇒ Object
-
#should_autorotate ⇒ Object
-
#should_rotate(orientation) ⇒ Object
-
#shouldAutorotate ⇒ Object
-
#shouldAutorotateToInterfaceOrientation(orientation) ⇒ Object
-
#stylesheet ⇒ Object
-
#stylesheet=(value) ⇒ Object
-
#view_did_appear(animated) ⇒ Object
-
#view_did_disappear(animated) ⇒ Object
-
#view_did_load ⇒ Object
-
#view_will_appear(animated) ⇒ Object
-
#view_will_disappear(animated) ⇒ Object
-
#viewDidAppear(animated) ⇒ Object
-
#viewDidDisappear(animated) ⇒ Object
-
#viewDidLoad ⇒ Object
-
#viewWillAppear(animated) ⇒ Object
-
#viewWillDisappear(animated) ⇒ Object
-
#will_animate_rotate(orientation, duration) ⇒ Object
-
#will_rotate(orientation, duration) ⇒ Object
-
#willAnimateRotationToInterfaceOrientation(orientation, duration: duration) ⇒ Object
-
#willRotateToInterfaceOrientation(orientation, duration: duration) ⇒ Object
Class Method Details
.rmq_style_sheet_class ⇒ Object
59
60
61
|
# File 'lib/project/ext/ui_view_controller.rb', line 59
def self.rmq_style_sheet_class
@rmq_style_sheet_class
end
|
.stylesheet(style_sheet_class) ⇒ Object
55
56
57
|
# File 'lib/project/ext/ui_view_controller.rb', line 55
def self.stylesheet(style_sheet_class)
@rmq_style_sheet_class = style_sheet_class
end
|
Instance Method Details
#append(view_or_constant, style = nil, opts = {}) ⇒ Object
3
4
5
|
# File 'lib/project/ext/ui_view_controller.rb', line 3
def append(view_or_constant, style=nil, opts = {})
self.rmq.append(view_or_constant, style, opts)
end
|
#append!(view_or_constant, style = nil, opts = {}) ⇒ Object
6
7
8
|
# File 'lib/project/ext/ui_view_controller.rb', line 6
def append!(view_or_constant, style=nil, opts = {})
self.rmq.append!(view_or_constant, style, opts)
end
|
#build(view_or_constant, style = nil, opts = {}) ⇒ Object
24
25
26
|
# File 'lib/project/ext/ui_view_controller.rb', line 24
def build(view_or_constant, style = nil, opts = {})
self.rmq.build(view_or_constant, style, opts)
end
|
#build!(view_or_constant, style = nil, opts = {}) ⇒ Object
27
28
29
|
# File 'lib/project/ext/ui_view_controller.rb', line 27
def build!(view_or_constant, style = nil, opts = {})
self.rmq.build!(view_or_constant, style, opts)
end
|
35
36
37
|
# File 'lib/project/ext/ui_view_controller.rb', line 35
def color
self.rmq.color
end
|
#create(view_or_constant, style = nil, opts = {}) ⇒ Object
17
18
19
|
# File 'lib/project/ext/ui_view_controller.rb', line 17
def create(view_or_constant, style=nil, opts = {})
self.rmq.create(view_or_constant, style, opts)
end
|
#create!(view_or_constant, style = nil, opts = {}) ⇒ Object
20
21
22
|
# File 'lib/project/ext/ui_view_controller.rb', line 20
def create!(view_or_constant, style=nil, opts = {})
self.rmq.create!(view_or_constant, style, opts)
end
|
#didRotateFromInterfaceOrientation(orientation) ⇒ Object
143
144
145
|
# File 'lib/project/ext/ui_view_controller.rb', line 143
def didRotateFromInterfaceOrientation(orientation)
self.on_rotate orientation
end
|
39
40
41
|
# File 'lib/project/ext/ui_view_controller.rb', line 39
def font
self.rmq.font
end
|
43
44
45
|
# File 'lib/project/ext/ui_view_controller.rb', line 43
def image
self.rmq.image
end
|
63
64
|
# File 'lib/project/ext/ui_view_controller.rb', line 63
def on_load
end
|
#on_rotate(orientation) ⇒ Object
140
141
|
# File 'lib/project/ext/ui_view_controller.rb', line 140
def on_rotate(orientation)
end
|
#originalViewDidLoad ⇒ Object
69
|
# File 'lib/project/ext/ui_view_controller.rb', line 69
alias :originalViewDidLoad :viewDidLoad
|
#prepend(view_or_constant, style = nil, opts = {}) ⇒ Object
10
11
12
|
# File 'lib/project/ext/ui_view_controller.rb', line 10
def prepend(view_or_constant, style=nil, opts = {})
self.rmq.prepend(view_or_constant, style, opts)
end
|
#prepend!(view_or_constant, style = nil, opts = {}) ⇒ Object
13
14
15
|
# File 'lib/project/ext/ui_view_controller.rb', line 13
def prepend!(view_or_constant, style=nil, opts = {})
self.rmq.prepend!(view_or_constant, style, opts)
end
|
#reapply_styles ⇒ Object
31
32
33
|
# File 'lib/project/ext/ui_view_controller.rb', line 31
def reapply_styles
self.rmq.all.reapply_styles
end
|
#should_autorotate ⇒ Object
125
126
127
|
# File 'lib/project/ext/ui_view_controller.rb', line 125
def should_autorotate
true
end
|
#should_rotate(orientation) ⇒ Object
118
119
|
# File 'lib/project/ext/ui_view_controller.rb', line 118
def should_rotate(orientation)
end
|
#shouldAutorotate ⇒ Object
129
130
131
|
# File 'lib/project/ext/ui_view_controller.rb', line 129
def shouldAutorotate
self.should_autorotate
end
|
#shouldAutorotateToInterfaceOrientation(orientation) ⇒ Object
121
122
123
|
# File 'lib/project/ext/ui_view_controller.rb', line 121
def shouldAutorotateToInterfaceOrientation(orientation)
self.should_rotate(orientation)
end
|
#stylesheet ⇒ Object
47
48
49
|
# File 'lib/project/ext/ui_view_controller.rb', line 47
def stylesheet
self.rmq.stylesheet
end
|
#stylesheet=(value) ⇒ Object
51
52
53
|
# File 'lib/project/ext/ui_view_controller.rb', line 51
def stylesheet=(value)
self.rmq.stylesheet = value
end
|
#view_did_appear(animated) ⇒ Object
91
92
|
# File 'lib/project/ext/ui_view_controller.rb', line 91
def view_did_appear(animated)
end
|
#view_did_disappear(animated) ⇒ Object
109
110
|
# File 'lib/project/ext/ui_view_controller.rb', line 109
def view_did_disappear(animated)
end
|
#view_did_load ⇒ Object
66
67
|
# File 'lib/project/ext/ui_view_controller.rb', line 66
def view_did_load
end
|
#view_will_appear(animated) ⇒ Object
82
83
|
# File 'lib/project/ext/ui_view_controller.rb', line 82
def view_will_appear(animated)
end
|
#view_will_disappear(animated) ⇒ Object
100
101
|
# File 'lib/project/ext/ui_view_controller.rb', line 100
def view_will_disappear(animated)
end
|
#viewDidAppear(animated) ⇒ Object
94
95
96
97
98
|
# File 'lib/project/ext/ui_view_controller.rb', line 94
def viewDidAppear(animated)
unless pm_handles_delegates?
self.view_did_appear(animated)
end
end
|
#viewDidDisappear(animated) ⇒ Object
112
113
114
115
116
|
# File 'lib/project/ext/ui_view_controller.rb', line 112
def viewDidDisappear(animated)
unless pm_handles_delegates?
self.view_did_disappear(animated)
end
end
|
#viewDidLoad ⇒ Object
70
71
72
73
74
75
76
77
78
79
80
|
# File 'lib/project/ext/ui_view_controller.rb', line 70
def viewDidLoad
set_stylesheet
self.originalViewDidLoad
unless pm_handles_delegates?
unless self.class.included_modules.include?(ProMotion::ScreenModule)
self.view_did_load
end
self.on_load
end
end
|
#viewWillAppear(animated) ⇒ Object
85
86
87
88
89
|
# File 'lib/project/ext/ui_view_controller.rb', line 85
def viewWillAppear(animated)
unless pm_handles_delegates?
self.view_will_appear(animated)
end
end
|
#viewWillDisappear(animated) ⇒ Object
103
104
105
106
107
|
# File 'lib/project/ext/ui_view_controller.rb', line 103
def viewWillDisappear(animated)
unless pm_handles_delegates?
self.view_will_disappear(animated)
end
end
|
#will_animate_rotate(orientation, duration) ⇒ Object
147
148
|
# File 'lib/project/ext/ui_view_controller.rb', line 147
def will_animate_rotate(orientation, duration)
end
|
#will_rotate(orientation, duration) ⇒ Object
133
134
|
# File 'lib/project/ext/ui_view_controller.rb', line 133
def will_rotate(orientation, duration)
end
|
#willAnimateRotationToInterfaceOrientation(orientation, duration: duration) ⇒ Object
150
151
152
|
# File 'lib/project/ext/ui_view_controller.rb', line 150
def willAnimateRotationToInterfaceOrientation(orientation, duration: duration)
self.will_animate_rotate(orientation, duration)
end
|
#willRotateToInterfaceOrientation(orientation, duration: duration) ⇒ Object
136
137
138
|
# File 'lib/project/ext/ui_view_controller.rb', line 136
def willRotateToInterfaceOrientation(orientation, duration:duration)
self.will_rotate(orientation, duration)
end
|