KGFloatingDrawer icon indicating copy to clipboard operation
KGFloatingDrawer copied to clipboard

Swapping between centreViewcontrollers?

Open Antuaaan opened this issue 9 years ago • 2 comments

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 avatar Aug 04 '16 10:08 Antuaaan

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.

Antuaaan avatar Aug 22 '16 08:08 Antuaaan

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

KyleGoddard avatar Nov 28 '16 19:11 KyleGoddard