pushViewController在iOS 5上不起作用(在iOS 6上确定) [英] pushViewController Not Working on iOS 5 (OK on iOS 6)

查看:58
本文介绍了pushViewController在iOS 5上不起作用(在iOS 6上确定)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个UINavigationController,它在屏幕上显示几个按钮.他们都简单地使用以下行:

I have a UINavigationController that displays several buttons on screen. They all simply use the line:

myViewController *newView = [[myViewController alloc] initWithNibName:@"myViewController"
                                                                          bundle:nil];
[[self navigationController] pushViewController:newView animated:YES];

切换到下一个视图.我有一个这样的视图控制器,但是仅在iOS 5上会导致崩溃.它在iOS 6上运行良好.我感到困惑.崩溃没有真正的细节.这是SIGABRT,突出显示了main.m行:

to transition to the next view. I have one such view controller however that results in a crash at this very line ONLY on iOS 5. It works perfectly fine on iOS 6. I am baffled. There are no real details to the crash. It is a SIGABRT that highlights the main.m line:

exitStatus = UIApplicationMain( argc, argv, nil, NSStringFromClass([ApplicationDelegate class]));

我不知道...

推荐答案

  1. 您需要取消选中自动版式.

  1. 并确保您也在此处进行更改.选择ios 5.1

这篇关于pushViewController在iOS 5上不起作用(在iOS 6上确定)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆