1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
- (
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;
}
|
相关文章
- uni-app自定义弹窗,底部页面触摸穿透问题解决方案(精华)
- UIScrollView滚动时隐藏底部导航栏问题
- ionic 进入多级目录以后隐藏底部导航栏(tabs)(完美解决方案)
- 彻底解决iOS7状态栏隐藏的问题(以及setStatusBarHidden:YES不起作用问题)
- Android 解决隐藏了导航栏(虚拟按键)后弹出PopupWindow 后又显示导航栏的问题
- Android WebView加载出现空白页面问题解决
- vue 在nginx下页面刷新出现404问题解决和在nginx下页面加载了js但是页面显示空白问题解决
- 解决 uni-app 微信小程序 input 输入框在底部时,键盘弹起页面整体上移问题
- 解决移动端软键盘弹起底部固定布局被顶上去问题和屏幕背景被压缩问题
- html 页面放大空白,解决HTML5 scale缩放空白问题