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

Swapping between centreViewcontrollers? #24

Open
Antuaaan opened this issue Aug 4, 2016 · 2 comments
Open

Swapping between centreViewcontrollers? #24

Antuaaan opened this issue Aug 4, 2016 · 2 comments

Comments

@Antuaaan
Copy link

Antuaaan commented Aug 4, 2016

When I first run my app I call one centreViewController with no drawers (Login). Then after login I call a new centreViewController with appDelegate.centerViewController = appDelegate.navigationBarController() which only works if I restart the app. Am I missing something?

The logout seems fine though appDelegate.centerViewController = appDelegate.drawerSettingsViewController() which puzzles me a bit because then I think I'm on the right track?

Am I supposed to only use normal segues and such first and then only call the drawerViewController?

@Antuaaan
Copy link
Author

Realised that the viewControllers were not being deinitialised after the centreVC was changed so added self.dismissViewControllerAnimated(false, completion: {}) each time I change the centreVC.

@KyleGoddard
Copy link
Owner

I don't fully understand the issue here, do you have sample code that illustrates the problem, or is this now resolved?

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

No branches or pull requests

2 participants