解决方案 »

  1.   

    层次上有问题。present出来的模态窗口,禁止再使用present 来弹出其它的子窗口
    解决方法:
    初始时window.rootViewController为login页面这个没有问题。但到主页面main的时候不要用present的方式来跳转视图。在login页面,登录成功后显示主页面的办法是:你可以重置window.rootViewController,将主页面main作为window.rootViewController。这样在tabbar中的navigationcontroller  中使用present来展示视图时就不会报错了
      

  2.   

    谢谢  
    在tabbar里用presentViewController 会出现这个警告 用nav入栈就没问题了
      

  3.   

    问,楼主怎么解决的,我也是tableBar ,present的守候报警告,怎么将nav入栈
      

  4.   

    viewController被提前入栈了,要拿到当前的viewController,解决方法:AppDelegate *delegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
        JKBLoginVC *loginVC = [[JKBLoginVC alloc] init];
        [delegate.window.rootViewController presentViewController:loginVC animated:YES completion:^{
            [loginVC release];
        }];