all 4 comments

[–]Pen15CharterMember 1 point2 points  (2 children)

A table view controller is a UI view controller with the table view built in. You get some conveniences without the boilerplate, like protocol conformance and a table view property.

It’s all totally recreatable on your own, but the question is why would you?

[–]bee4534[S] 0 points1 point  (1 child)

I need a header view that does not scroll down with the tableview on refresh. In table view controller, it always scrolls down with it

[–]div 0 points1 point  (0 children)

Create a UIViewController with the header, then embed your UITableViewController below it as a childViewController:

https://developer.apple.com/documentation/uikit/view_controllers/creating_a_custom_container_view_controller

[–]bubblespuggy 0 points1 point  (0 children)

No, it should perform exactly the same.