Set Table View Controller for section in another table view
-
27-10-2019 - |
Question
I have FirstViewController
(inherits from UITableViewController
), and I want to show the SecondViewController
(also inherits from UITableViewController
) in the first section of FirstViewController
.
Is there a way to do this?
Solution
You could try to put the SecondViewController.view inside the UITableViewCell
of the first section/row of your FirstViewController.
But maybe the best solution is to create a subclass of UITableView
(more than UITableViewController
) and do the same, or add it to the headerView of your FirstViewController.
For the code part, try something and come back if you have a problem or more precise question :-)
Anyway, it should works ^^
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow