SwiftPages
SwiftPages copied to clipboard
Presenting view controllers on detached view controllers is discouraged
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
Hi, Please check with the latest code I pushed :)
Was there ever any resolution to this?