Class: Kondi::TableViewCell
- Inherits:
-
UITableViewCell
- Object
- UITableViewCell
- Kondi::TableViewCell
show all
- Includes:
- Callbacks
- Defined in:
- lib/kondi/table_view_cell.rb
Constant Summary
collapse
- ACCESSORY =
{
:none => UITableViewCellAccessoryNone,
:checkmark => UITableViewCellAccessoryCheckmark
}
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Callbacks
included, #run_after_callbacks, #run_before_callbacks, #run_callbacks
Class Method Details
.identifier ⇒ Object
24
25
26
|
# File 'lib/kondi/table_view_cell.rb', line 24
def self.identifier
name
end
|
.new(table_view_controller) ⇒ Object
20
21
22
|
# File 'lib/kondi/table_view_cell.rb', line 20
def self.new(table_view_controller)
table_view_controller.recycle_cell(self) || alloc.initWithStyle(UITableViewCellStyleDefault, reuseIdentifier:identifier)
end
|
Instance Method Details
#accessory=(accessory_name) ⇒ Object
16
17
18
|
# File 'lib/kondi/table_view_cell.rb', line 16
def accessory=(accessory_name)
self.accessoryType = ACCESSORY[accessory_name] || UITableViewCellAccessoryNone
end
|
#label ⇒ Object
12
13
14
|
# File 'lib/kondi/table_view_cell.rb', line 12
def label
textLabel
end
|