IOS 7隐藏tabbar问题 [英] IOS 7 hide tabbar issue

查看:144
本文介绍了IOS 7隐藏tabbar问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

隐藏IOS7中的标签栏显示非正式行为

Hide tabbar in IOS7 shows informal behaviour

当我使用

self.tabBarController.tabBar.hidden = YES;

上面的代码隐藏了tabBar,但我的底部视图不会保持交互式

Above code hides the tabBar, but my view from bottom does not remain interactive

但是当我在导航中推送viewController之前使用它时

But when I uses this just before pushing viewController in navigation

someViewController.hidesBottomBarWhenPushed = YES
[self.navigationController pushViewController:someViewController animated:YES];

它隐藏了tabbar以及从底部查看也是交互式的。
但在这种情况下的问题是,当我们弹出viewController时,它会在tabbar上方显示黑条几秒钟。

It hides tabbar as well as view from bottom is also interactive. but problem in this case is, when we pop viewController it shows black bar just above tabbar for few seconds.

推荐答案

我希望你能得到解决方案。为了确保,你有没有尝试

I hope you got the solution. Just to make sure, did you try

 self.edgesForExtendedLayout = UIRectEdgeBottom;

这篇关于IOS 7隐藏tabbar问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆