2010-11-06 44 views
0

我使用TabBarApplication中的SplitViewController进行管理。 现在的问题是,试图在横向模式下启动应用程序(SplitViewController是我的TabbarApp中的第一个视图),详细信息视图不会被加载。在人像中开始拍摄后,我的iPad也可以正常工作。DetailView不加载SplitViewController

这里2个链接:

Starting in Portrait, switching to Landscape

Starting in Landscape

我修改了willShowViewController方法,因为我couln't即使在横向

- (void)splitViewController: (UISplitViewController*)svc willShowViewController:(UIViewController *)aViewController invalidatingBarButtonItem:(UIBarButtonItem *)barButtonItem { 

    NSMutableArray *items = [[toolbar items] mutableCopy]; 
    //XLog("second: %i",[items count]); 
    if([items count] > 0) { 
     [items removeObjectAtIndex:0]; 
     [toolbar setItems:items animated:YES]; 
    } 
    [items release]; 
    self.popoverController = nil; 

} 

的,如果查询启动防止我的应用在景观中崩溃。

我不知道为什么我的detailviewcontroller没有显示出来,并且我的splitview的rootviewcontroller显示了整个宽度。

有什么想法?

谢谢!

回答

相关问题