在splitview popover框架问题中的iPad导航控制器

时间:2011-09-16 15:52:02

标签: ipad uisplitviewcontroller uipopovercontroller navigationcontroller

我将导航控制器作为拆分视图的根视图控制器。 当iPad处于纵向模式时,根视图控制器显示在弹出控制器内。它默认情况下我知道......

但我的问题是根视图控制器的顶部似乎隐藏了弹出窗口。看到附着的图像。在它里面,主页栏按钮似乎隐藏在顶部的一小部分。

enter image description here

 RootViewController *objRootViewController = [[RootViewController alloc] init];

    DetailViewController *objDetailViewController = [[DetailViewController alloc] init];


    UINavigationController *rootNavigationController = [[UINavigationController alloc] initWithRootViewController:objRootViewController];


    UINavigationController *detailNavigationController = [[UINavigationController alloc] initWithRootViewController:objDetailViewController];


    UISplitViewController *objSplitViewController = [[UISplitViewController alloc] init];
    [objSplitViewController setDelegate:objDetailViewController];


    [objSplitViewController setViewControllers:[NSArray arrayWithObjects:rootNavigationController,detailNavigationController, nil]];

    self.splitViewController = objSplitViewController;

    [self.window addSubview:self.splitViewController.view];

    [objSplitViewController release];
    objSplitViewController = nil;

    [rootNavigationController release];
    rootNavigationController = nil;

    [detailNavigationController release];
    detailNavigationController = nil;

    [objDetailViewController release];
    objDetailViewController = nil;

    [objRootViewController release];
    objRootViewController = nil;

0 个答案:

没有答案