I'm trying to add a custom subview to a UITableViewController
that doesn't move when the user scrolls.
Is it possible to add such a view?
I'm using a UITableViewController
. I would switch to a UIViewController
and add a UITableView
, but the code relies on the UITableViewController's refreshControl
. Adding a container view and having two controllers seems a bit much for such a simple task!
I've also tried adding the content to the UINavigationController
view, but unfortunately it doesn't animate smoothly when the view controller appears and disappears.
Is there any way to add a fixed subview to a UITableView
?
Edit:
Adding a container view and having two controllers (with an embed segue) is difficult for this project, since I'm updating an older code base and there is a lot of legacy code that depends on the main controller being a UITableViewController
. Is there any way to achieve this without an embed segue / two view controllers?