简体   繁体   English

升级到iOS 4.2后,iPhone / iPad应用程序在Ipad上显示空白屏幕

[英]iPhone/iPad application shows a blank screen on Ipad after upgrading to iOS 4.2

Since I've upgraded my iPad to iOS 4.2, one of my universal applications shows a blank screen on iPad (on iPhone, it's OK). 自从我将iPad升级到iOS 4.2之后,我的一个通用应用程序在iPad上显示了一个空白屏幕(在iPhone上可以)。

The code creating the window for the iPad is: 创建iPad窗口的代码是:

firstVC = [[[PickerViewController alloc]             initWithNibName:@"PickerViewIpad" bundle:nil] autorelease];
ResultViewController* secondVC = [[[ResultViewController alloc]
            initWithNibName:@"ResultViewIpad" bundle:nil] autorelease];

PermanentSplitViewController* splitVC = [[PermanentSplitViewController alloc] init];
  splitVC.viewControllers = [NSArray arrayWithObjects:firstVC, secondVC, nil];

[window addSubview:splitVC.view];
[window makeKeyAndVisible];

PermanentSplitViewController is derived from UISplitViewController. PermanentSplitViewController派生自UISplitViewController。

No fatal error at compilation. 编译时没有致命错误。 No error at runtime. 运行时无错误。

Any idea how to solve this problem? 任何想法如何解决这个问题?

The problem was not in the creation of the views but is similar as this one : How implement splitview for iphone os 4.2? 问题不在视图的创建中,而是与之类似: 如何为iphone os 4.2实现splitview?

Regards, 问候,

Guy 盖伊

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM