Class: Loco::UI::TableViewCell
- Inherits:
-
UITableViewCell
- Object
- UITableViewCell
- Loco::UI::TableViewCell
show all
- Includes:
- Observable
- Defined in:
- lib/motion-loco/table_view.rb
Instance Method Summary
collapse
Methods included from Observable
#init, #initWithFrame, #initialize, #method_missing, #register_observer, #remove_all_observers, #remove_observer, #set_properties, #update_attributes
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Loco::Observable
Instance Method Details
#initWithStyle(style, reuseIdentifier: reuseIdentifier) ⇒ Object
13
14
15
16
17
18
|
# File 'lib/motion-loco/table_view.rb', line 13
def initWithStyle(style, reuseIdentifier:reuseIdentifier)
if super
view_setup end
self
end
|
#select ⇒ Object
20
21
22
|
# File 'lib/motion-loco/table_view.rb', line 20
def select
Loco.debug("Override #{self.class}#select with the action to take when the row is selected")
end
|
#view_controller(superview = nil) ⇒ Object
Also known as:
viewController
24
25
26
27
28
29
30
31
32
33
34
35
|
# File 'lib/motion-loco/table_view.rb', line 24
def view_controller(superview=nil)
if superview
view_controller = superview.nextResponder
else
view_controller = self.superview.nextResponder
end
if view_controller.is_a? UIViewController
view_controller
elsif view_controller.is_a? UIView
self.view_controller(view_controller)
end
end
|
#view_setup ⇒ Object
38
39
40
|
# File 'lib/motion-loco/table_view.rb', line 38
def view_setup
viewSetup
end
|
#viewSetup ⇒ Object
42
43
44
|
# File 'lib/motion-loco/table_view.rb', line 42
def viewSetup
Loco.debug("Override #{self.class}#viewSetup or #{self.class}#view_setup to customize the view")
end
|