Class: TableViewController

Inherits:
UITableViewController
  • Object
show all
Includes:
Teacup::TableViewDelegate
Defined in:
app/controllers/table_view_controller.rb

Instance Method Summary collapse

Instance Method Details

#numberOfSectionsInTableView(table_view) ⇒ Object



10
11
12
# File 'app/controllers/table_view_controller.rb', line 10

def numberOfSectionsInTableView(table_view)
  1
end

#tableView(tableView, willDisplayCell: cell, forRowAtIndexPath: indexPath) ⇒ Object



14
15
16
# File 'app/controllers/table_view_controller.rb', line 14

def tableView(table_view, numberOfRowsInSection:section)
  10
end

#viewDidLoadObject



6
7
8
# File 'app/controllers/table_view_controller.rb', line 6

def viewDidLoad
  self.view.registerClass(CustomCell, forCellReuseIdentifier:'cell id')
end