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