Class: TableViewController
- Inherits:
-
UITableViewController
- Object
- UITableViewController
- TableViewController
- Includes:
- Teacup::TableViewDelegate
- Defined in:
- app/controllers/table_view_controller.rb
Instance Method Summary collapse
- #numberOfSectionsInTableView(table_view) ⇒ Object
- #tableView(tableView, willDisplayCell: cell, forRowAtIndexPath: indexPath) ⇒ Object
- #viewDidLoad ⇒ Object
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 |
#viewDidLoad ⇒ Object
6 7 8 |
# File 'app/controllers/table_view_controller.rb', line 6 def viewDidLoad self.view.registerClass(CustomCell, forCellReuseIdentifier:'cell id') end |