隐藏 UITUITababBar (解决底部空白问题)
来源:互联网 发布:回收站数据恢复破解版 编辑:程序博客网 时间:2024/06/08 07:53
123456789101112131415161718192021- (
void
)setTabBarHidden:(
BOOL
)hidden{
UIView
*tab =
self
.tabBarController
.view
;
if
([tab
.subviews
count
] <
2
) {
return
;
}
UIView
*view;
if
([[tab
.subviews
objectAtIndex
:
0
]
isKindOfClass
:[
UITabBar
class
]]) {
view = [tab
.subviews
objectAtIndex
:
1
];
}
else
{
view = [tab
.subviews
objectAtIndex
:
0
];
}
if
(hidden) {
view
.frame
= tab
.bounds
;
}
else
{
view
.frame
= CGRectMake(tab
.bounds
.origin
.x
, tab
.bounds
.origin
.y
, tab
.bounds
.size
.width
, tab
.bounds
.size
.height
);
}
self
.tabBarController
.tabBar
.hidden
= hidden;
}
- 隐藏 UITUITababBar (解决底部空白问题)
- 解决隐藏tabbar后底部视图button不响应问题
- ScrollView嵌套WebView出现底部空白问题
- 如何隐藏UITableView中底部多余的空白行
- [积累] 解决Checkbox , 隐藏掉button后面显示空白的问题
- android scollview嵌套webview底部空白,高度无法自适应解决
- android ScollView 嵌套 WebView 底部空白,高度无法自适应解决
- 解决网页出现空白问题
- UIAlertControllerStyleActionSheet 点击空白处不隐藏问题
- ScrollView和WebView 嵌套,底部出现大块空白的问题
- 解决tabhost底部tab问题
- img的底部空白
- 完美解决点击空白处,隐藏软键盘
- 完美解决点击空白处,隐藏软键盘
- 网络连接文件夹空白问题的解决
- 解决ThinkSNS安装空白的问题
- 解决iframe 右边有空白的问题
- 解决织梦后台登陆空白问题
- T9 Spelling
- Sublime Text 2中文显示乱码的解决
- 分享原生JavaScript技巧大收集(91~100)
- 博弈方法积累
- 英语不可怕了
- 隐藏 UITUITababBar (解决底部空白问题)
- hdu1251 统计难题 (字典树)
- StringTokenizer
- Centos上安装MariaDB
- HDU 2255 奔小康赚大钱 求最大匹配值(入门)
- Merge Sort and apply it to an interview question
- (poj)3254 Corn Fields
- Hadoop namenode 没有运行 解决方案
- 父shell和子shell的区别,在shell脚本中要cd一个文件夹为什么要用父shell运行