用 [self.view.window.rootViewControllerpresentViewController:navController animated:YEScompletion:nil];
问题原因是执行了 [rootVC.view addSubview: rootVC.nextVC.view],然后在nextVC上执行present就会报warning
解决方法是:排查view controllers的hierarchy,查看所有viewcontroller的显示是否是通过 push or present 方式。
参考链接:http://stackoverflow.com/questions/19890761/warning-presenting-view-controllers-on-detached-view-controllers-is-discourage