Is there any way to change a view programmatically? I am using the same viewcontroller to show two different datasets in a tableview. I have two buttons in the menu, one for each dataset. When clicking on button1 I go to the ListVC and everything works fine. When clicking on button2 I go to an empty ViewController that segues right away to ListVC.
When I do the segue, the menu button is not shown in ListVC. This is probably because I am not adding a subview to the BaseViewController when I segue. But is there any way to add a code inside my empty ViewController that adds ListVC as a subview, instead of doing a normal segue?
Is there any way to change a view programmatically? I am using the same viewcontroller to show two different datasets in a tableview. I have two buttons in the menu, one for each dataset. When clicking on button1 I go to the ListVC and everything works fine. When clicking on button2 I go to an empty ViewController that segues right away to ListVC.
When I do the segue, the menu button is not shown in ListVC. This is probably because I am not adding a subview to the BaseViewController when I segue. But is there any way to add a code inside my empty ViewController that adds ListVC as a subview, instead of doing a normal segue?