UITabBar 导航和presentModalViewController
我有基于 UITabBar 的导航,并且希望标签栏始终位于其他窗口之上。在一个控制器中,我有打开其他控制器的方法,但是当我使用此 UITabBar 时,它会消失。 我还应该做什么?
ThirdView*third =[[ThirdView alloc] initWithNibName:nil bundle:nil];
third.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self.tabBarController presentModalViewController:third animated:YES];
[third release];
I have UITabBar based navigation and want always tabbar on top other widows. In one controller i have method which opens other controller, but when i use this UITabBar disappear.
What i should do more ?
ThirdView*third =[[ThirdView alloc] initWithNibName:nil bundle:nil];
third.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self.tabBarController presentModalViewController:third animated:YES];
[third release];
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该将
UINavigationController
用于UITabBarController
的选项卡。然后,要呈现一个新的UIViewController
,您需要将新的它推送到UINavigationController
的堆栈上。你可以这样做:如果你想要模态效果,你可以这样做:
You should use
UINavigationController
s for the tabs of yourUITabBarController
. Then to present a newUIViewController
you want to push new it onto the stack of yourUINavigationController
. You can do this like so:If you want the modal effect, you could do something like this: