Difference between table view and table view controller
Answers
Answered by
1
TABLEVIEW CONTROLLER:
A TableViewController is a ViewController with a TableView built in. This will have the delegate methods needed already declared and setup. This VC is already a TableView delegate and datasource. It cannot be resized. Upside is ease of use, downside is very limited flexibility.
TABLEVIEW:
A TableView is just that a TableView (subclass of UIView). It can be added to a ViewController and resized, used alongside another view based object, etc. The upside is the flexibility, the downside is that you have to setup the delegate and datasource methods yourself (in my opinion, well worth the time to get the flexibility).
Similar questions
English,
7 months ago
Computer Science,
7 months ago
Math,
7 months ago
Math,
1 year ago
Business Studies,
1 year ago
Math,
1 year ago