有带有UINavigationBar和的 iPad 应用程序UITabBar。
我想通过“阻塞”和点击显示另一个UIViewController(以红色 UIView 作为子视图的 clearColored)。UINavigationBarUITabBar
我该怎么做?
已编辑
如果我使用[self presentViewController:aboutView animated:YES completion:nil];:

它覆盖了所有黑色背景((
有带有UINavigationBar和的 iPad 应用程序UITabBar。
我想通过“阻塞”和点击显示另一个UIViewController(以红色 UIView 作为子视图的 clearColored)。UINavigationBarUITabBar
我该怎么做?
已编辑
如果我使用[self presentViewController:aboutView animated:YES completion:nil];:

它覆盖了所有黑色背景((
[self.tabBarController.navigationController setNavigationBarHidden:TRUE];
[self.navigationController setNavigationBarHidden:TRUE];
self.tabBarController.hidesBottomBarWhenPushed = YES;
[self presentViewController:VC animated:YES completion:nil];
您可以提出 aUIViewController这将掩盖底层的UITabBarControllerand UINavigationBarController。尝试:
[self presentViewController:aViewController animated:YES completion:nil];
请记住,您将负责通过调用呈现视图控制器来解除dismissViewControllerAnimated:呈现的视图控制器。
尝试这个
ViewController *detailview =[[ViewController alloc]initWithNibName:@"ViewController" bundle:nil]
[self.tabBarController presentViewController:detailview animated:YES completion:nil];