Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change view programmatically #6

Open
Bjorninn1 opened this issue Jan 9, 2018 · 1 comment
Open

Change view programmatically #6

Bjorninn1 opened this issue Jan 9, 2018 · 1 comment

Comments

@Bjorninn1
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants