大大你好,我用的这个框架遇到这样一个问题
window的rootview为A页面(登录页面)
登录成功后pre到B页面,代码如下
MainViewController next = [[MainViewController alloc]init];
UINavigationController nav = [[UINavigationController alloc]initWithRootViewController:next];
[self presentViewController:nav animated:YES completion:nil];
在B页面上点击显示左侧页面,点击左侧页面的按钮进入下一页报错
Warning: Attempt to present <NextViewController: 0x7ff3a6e17760> on <UINavigationController: 0x7ff3a8035600> whose view is not in the window hierarchy!
这样怎么解决呢
大大你好,我用的这个框架遇到这样一个问题 window的rootview为A页面(登录页面) 登录成功后pre到B页面,代码如下 MainViewController next = [[MainViewController alloc]init]; UINavigationController nav = [[UINavigationController alloc]initWithRootViewController:next]; [self presentViewController:nav animated:YES completion:nil]; 在B页面上点击显示左侧页面,点击左侧页面的按钮进入下一页报错 Warning: Attempt to present <NextViewController: 0x7ff3a6e17760> on <UINavigationController: 0x7ff3a8035600> whose view is not in the window hierarchy! 这样怎么解决呢