view controllers is discouraged iosview 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 层次上有问题。present出来的模态窗口,禁止再使用present 来弹出其它的子窗口解决方法:初始时window.rootViewController为login页面这个没有问题。但到主页面main的时候不要用present的方式来跳转视图。在login页面,登录成功后显示主页面的办法是:你可以重置window.rootViewController,将主页面main作为window.rootViewController。这样在tabbar中的navigationcontroller 中使用present来展示视图时就不会报错了 谢谢 在tabbar里用presentViewController 会出现这个警告 用nav入栈就没问题了 问,楼主怎么解决的,我也是tableBar ,present的守候报警告,怎么将nav入栈 viewController被提前入栈了,要拿到当前的viewController,解决方法:AppDelegate *delegate = (AppDelegate *)[UIApplication sharedApplication].delegate; JKBLoginVC *loginVC = [[JKBLoginVC alloc] init]; [delegate.window.rootViewController presentViewController:loginVC animated:YES completion:^{ [loginVC release]; }]; 使用ARC内存泄露 Iphone开发证书问题 iphone上开心网客户端程序讨论 cocos2d-x里有现成的下载管理器吗? 关于instruments检测的内存泄露 请教QQ的发送图片功能是怎么实现的 sqlite 存取图片问题 nsdata加密后转化为nsstring为nil [分享]XMIDI V1.1 ,一款IOS上的MIDI文件播放引擎 NSURL的属性有人了解吗 ios json字符串解压问题 scrollView
解决方法:
初始时window.rootViewController为login页面这个没有问题。但到主页面main的时候不要用present的方式来跳转视图。在login页面,登录成功后显示主页面的办法是:你可以重置window.rootViewController,将主页面main作为window.rootViewController。这样在tabbar中的navigationcontroller 中使用present来展示视图时就不会报错了
在tabbar里用presentViewController 会出现这个警告 用nav入栈就没问题了
JKBLoginVC *loginVC = [[JKBLoginVC alloc] init];
[delegate.window.rootViewController presentViewController:loginVC animated:YES completion:^{
[loginVC release];
}];