Computer Science, asked by Beilieber2168, 1 year ago

Difference between table view and table view controller

Answers

Answered by gajojuashritha
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