在保持触摸的同时按下UITabBar [英] Hide UITabBar when pushed while retaining touch

查看:101
本文介绍了在保持触摸的同时按下UITabBar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在一个视图控制器上隐藏 UITabBar 。我试过了

I need to hide UITabBar on one view controller. I tried

vc.hideTabBarwhenpushed = TRUE

推送时;这工作正常,但是当我在这个视图控制器上打开一个 UITable 时,那么 UITabBar 应该在底部,在那个地方,我的 UITable 没有接触到。
我试过做

when pushed; this worked fine, but when I opened a UITable on this view controller, then at the bottom where UITabBar should be, at that place my UITable is not getting touch. I tried doing

[viewController setWantsFullScreenLayout:YES];

但它没有用。

推荐答案

您需要确保正确设置表格视图的弹簧和支柱:

You need to make sure that you are setting the springs and struts of your table view correctly:

这篇关于在保持触摸的同时按下UITabBar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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