Class: Kondi::TableViewController

Inherits:
UITableViewController
  • Object
show all
Defined in:
lib/kondi/table_view_controller.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.newObject



24
25
26
27
28
# File 'lib/kondi/table_view_controller.rb', line 24

def self.new
  instance = alloc.initWithStyle(UITableViewStylePlain)
  instance.wantsFullScreenLayout = true
  instance
end

Instance Method Details

#cell_at(index_path) ⇒ Object



20
21
22
# File 'lib/kondi/table_view_controller.rb', line 20

def cell_at(index_path)
  tableView.cellForRowAtIndexPath(index_path)
end

#recycle_cell(id_or_class) ⇒ Object



15
16
17
18
# File 'lib/kondi/table_view_controller.rb', line 15

def recycle_cell(id_or_class)
  id = id_or_class.respond_to?(:identifier) ? id_or_class.identifier : id_or_class
  tableView.dequeueReusableCellWithIdentifier(id)
end

#tableView(tableView, didSelectRowAtIndexPath: indexPath) ⇒ Object



3
4
5
# File 'lib/kondi/table_view_controller.rb', line 3

def tableView(tableView, numberOfRowsInSection:section)
  size
end