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

Presenting view controllers on detached view controllers is discouraged #18

Open
KaushikShivam opened this issue Nov 26, 2015 · 2 comments

Comments

@KaushikShivam
Copy link

Thanks for the great library.

I have a Menu with 3 child viewControllers.
One of them has tableView and when a cell is tapped, presentViewController method is called in didSelectItemAtIndexPath.
Then, the following warning displays in debug window.

Presenting view controllers on detached view controllers is discouraged
The modal viewcontroller is displayed properly but when dismissViewControllerAnimated is called, source view layout collapses and the view goes under navigationbar.
How can I prevent from the warning?
I tried the following code but when dismissViewControllerAnimated is called, EXC_BAD_ACCESS error occurs.

self.view.window!.rootViewController?.presentViewController(vc, animated: true, completion: nil)
Swift 2.0
XCode 7

@GabrielAlva
Copy link
Owner

Hi,
Please check with the latest code I pushed :)

@alaxicsmith
Copy link

Was there ever any resolution to this?

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

3 participants