PhilippeBoisney / Swift-Slide-Menu

A Slide Menu, written in Swift, inspired by Slide Menu Material Design
89 stars 15 forks source link

Change view programmatically #6

Open Bjorninn1 opened 6 years ago

Bjorninn1 commented 6 years ago

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?

Starsky89 commented 6 years ago

Do you still need help with your issue? I might try to help.