Class: UITableViewCell
- Defined in:
- lib/ios/sugarcube-factories/uitableviewcell.rb
Overview
Factory methods for UITableViewCell
Class Method Summary collapse
-
.default(reuse_identifier, options = {}) ⇒ Object
returns a cell in the default style, with reuse identifier ‘reuse_identifier`.
-
.subtitle(reuse_identifier, options = {}) ⇒ Object
returns a cell in the subtitle style, with reuse identifier ‘reuse_identifier`.
-
.value1(reuse_identifier, options = {}) ⇒ Object
returns a cell in the value1 style, with reuse identifier ‘reuse_identifier`.
-
.value2(reuse_identifier, options = {}) ⇒ Object
returns a cell in the value2 style, with reuse identifier ‘reuse_identifier`.
Class Method Details
.default(reuse_identifier, options = {}) ⇒ Object
returns a cell in the default style, with reuse identifier ‘reuse_identifier`. Supported options are :accessory, :text, :detail, :image, and :selection_style. Valid values for `:accessory`:
:none, :disclosure, :disclosureindicator, :detail,
:detaildisclosurebutton, :checkmark
or any UITableViewCellAccessory constant
Valid values for ‘:selection_style`:
:none, :blue, :gray
or any UITableViewCellSelectionStyle constant
16 17 18 |
# File 'lib/ios/sugarcube-factories/uitableviewcell.rb', line 16 def default(reuse_identifier, ={}) return sugarcube_cell_factory(reuse_identifier, :default, ) end |
.subtitle(reuse_identifier, options = {}) ⇒ Object
returns a cell in the subtitle style, with reuse identifier ‘reuse_identifier`. Supported options are :accessory, :text, :detail, :image, and :selection_style. Valid values for `:accessory`:
:none, :disclosure, :disclosureindicator, :detail,
:detaildisclosurebutton, :checkmark
or any UITableViewCellAccessory constant
Valid values for ‘:selection_style`:
:none, :blue, :gray
or any UITableViewCellSelectionStyle constant
58 59 60 |
# File 'lib/ios/sugarcube-factories/uitableviewcell.rb', line 58 def subtitle(reuse_identifier, ={}) return sugarcube_cell_factory(reuse_identifier, :subtitle, ) end |
.value1(reuse_identifier, options = {}) ⇒ Object
returns a cell in the value1 style, with reuse identifier ‘reuse_identifier`. Supported options are :accessory, :text, :detail, :image, and :selection_style. Valid values for `:accessory`:
:none, :disclosure, :disclosureindicator, :detail,
:detaildisclosurebutton, :checkmark
or any UITableViewCellAccessory constant
Valid values for ‘:selection_style`:
:none, :blue, :gray
or any UITableViewCellSelectionStyle constant
30 31 32 |
# File 'lib/ios/sugarcube-factories/uitableviewcell.rb', line 30 def value1(reuse_identifier, ={}) return sugarcube_cell_factory(reuse_identifier, :value1, ) end |
.value2(reuse_identifier, options = {}) ⇒ Object
returns a cell in the value2 style, with reuse identifier ‘reuse_identifier`. Supported options are :accessory, :text, :detail, :image, and :selection_style. Valid values for `:accessory`:
:none, :disclosure, :disclosureindicator, :detail,
:detaildisclosurebutton, :checkmark
or any UITableViewCellAccessory constant
Valid values for ‘:selection_style`:
:none, :blue, :gray
or any UITableViewCellSelectionStyle constant
44 45 46 |
# File 'lib/ios/sugarcube-factories/uitableviewcell.rb', line 44 def value2(reuse_identifier, ={}) return sugarcube_cell_factory(reuse_identifier, :value2, ) end |