You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: