将 Controller 从一个屏幕移动到另一个屏幕时出现此类错误。
Presenting view controllers on detached view controllers is discouraged.
最佳答案
[self.view.window.rootViewController presentViewController:viewController animated:YES completion:nil];
当一切都完成后,你可以调用:
[self dismissViewControllerAnimated:YES completion:nil];
你也可以引用这个链接: Warning :-Presenting view controllers on detached view controllers is discouraged
关于ios - View Controller 之间的导航不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38581882/