Class: UITableViewCell

Inherits:
Object show all
Defined in:
lib/ios/sugarcube-factories/uitableviewcell.rb

Overview

Factory methods for UITableViewCell

Class Method Summary collapse

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, options={})
  return sugarcube_cell_factory(reuse_identifier, :default, options)
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, options={})
  return sugarcube_cell_factory(reuse_identifier, :subtitle, options)
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, options={})
  return sugarcube_cell_factory(reuse_identifier, :value1, options)
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, options={})
  return sugarcube_cell_factory(reuse_identifier, :value2, options)
end