Class: UITableViewCell
- Defined in:
- lib/ios/sugarcube-factories/uitableviewcell.rb
Overview
Factory methods for UITableViewCell
Class Method Summary collapse
-
.default(cell_identifier, options = {}) ⇒ Object
returns a cell in the default style, with reuse identifier ‘cell_identifier`.
-
.subtitle(cell_identifier, options = {}) ⇒ Object
returns a cell in the subtitle style, with reuse identifier ‘cell_identifier`.
-
.value1(cell_identifier, options = {}) ⇒ Object
returns a cell in the value1 style, with reuse identifier ‘cell_identifier`.
-
.value2(cell_identifier, options = {}) ⇒ Object
returns a cell in the value2 style, with reuse identifier ‘cell_identifier`.
Class Method Details
.default(cell_identifier, options = {}) ⇒ Object
returns a cell in the default style, with reuse identifier ‘cell_identifier`. Options are passed on to the `sugarcube_cell_factory` method.
9 10 11 |
# File 'lib/ios/sugarcube-factories/uitableviewcell.rb', line 9 def default(cell_identifier, ={}) return sugarcube_cell_factory(cell_identifier, :default, ) end |
.subtitle(cell_identifier, options = {}) ⇒ Object
returns a cell in the subtitle style, with reuse identifier ‘cell_identifier`. Options are passed on to the `sugarcube_cell_factory` method.
30 31 32 |
# File 'lib/ios/sugarcube-factories/uitableviewcell.rb', line 30 def subtitle(cell_identifier, ={}) return sugarcube_cell_factory(cell_identifier, :subtitle, ) end |
.value1(cell_identifier, options = {}) ⇒ Object
returns a cell in the value1 style, with reuse identifier ‘cell_identifier`. Options are passed on to the `sugarcube_cell_factory` method.
16 17 18 |
# File 'lib/ios/sugarcube-factories/uitableviewcell.rb', line 16 def value1(cell_identifier, ={}) return sugarcube_cell_factory(cell_identifier, :value1, ) end |
.value2(cell_identifier, options = {}) ⇒ Object
returns a cell in the value2 style, with reuse identifier ‘cell_identifier`. Options are passed on to the `sugarcube_cell_factory` method.
23 24 25 |
# File 'lib/ios/sugarcube-factories/uitableviewcell.rb', line 23 def value2(cell_identifier, ={}) return sugarcube_cell_factory(cell_identifier, :value2, ) end |