Ipad:SplitViewController黑色详细信息ViewController

Ipad:SplitViewController黑色详细信息ViewController,ipad,uisplitviewcontroller,Ipad,Uisplitviewcontroller,我有以下问题 我正在开发一个以splitViewController作为根控制器的应用程序。在appDelegate中,我在方法didFinishLaunchingWithOptions中有以下代码: [self.window addSubview:splitViewController.view]; [self.window makeKeyAndVisible]; self.sendData = [[[SendData alloc] init] autorelease]; showEvent

我有以下问题

我正在开发一个以splitViewController作为根控制器的应用程序。在appDelegate中,我在方法didFinishLaunchingWithOptions中有以下代码:

[self.window addSubview:splitViewController.view];
[self.window makeKeyAndVisible];
self.sendData = [[[SendData alloc] init] autorelease];

showEventsViewController.sendData = self.sendData;
LoginView *lvc = [[LoginView alloc] initWithNibName:@"LoginView" bundle:nil];
lvc.delegate = self;

[splitViewController presentModalViewController:lvc animated:NO];
[lvc release];
return YES;
登录完成后,我将关闭loginView并显示splitViwController

此外,我的应用程序只需要在横向模式下运行,因此我配置了plist以避免仅在横向模式下运行,并在每个视图控制器中设置以下代码:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Overriden to allow any orientation.
if (interfaceOrientation == UIInterfaceOrientationLandscapeLeft)
    return YES;
if (interfaceOrientation == UIInterfaceOrientationLandscapeRight)
    return YES;
return NO;
}

但当我在纵向模式下运行应用程序(登录视图显示在横向模式下)并完成登录时,splitview显示在横向模式下,而detailViewController显示为全黑色(主视图显示在横向模式下)

发生了什么事


感谢

对不起offtopic,但您是如何向splitViewController发送lvc已完成登录的消息的?对不起offtopic,但您是如何向splitViewController发送lvc已完成登录的消息的?