hide tab ios
来源:互联网 发布:天高云淡秒赞4.0源码 编辑:程序博客网 时间:2024/06/06 09:22
- (void) hideTabBar:(BOOL) hidden{
[UIView beginAnimations:nilcontext:NULL];
[UIView setAnimationDuration:0];
UIView *window = [UIApplicationsharedApplication].keyWindow;
for(UIView *viewin self.tabBarController.view.subviews)
{
if([viewisKindOfClass:[UITabBar class]])
{
if (hidden) {
[view setFrame:CGRectMake(view.frame.origin.x, window.height, view.frame.size.width, view.frame.size.height)];
} else {
[view setFrame:CGRectMake(view.frame.origin.x, window.height-49, view.frame.size.width, view.frame.size.height)];
}
}
else
{
if (hidden) {
[view setFrame:CGRectMake(view.frame.origin.x, view.frame.origin.y, view.frame.size.width, window.height)];
} else {
[view setFrame:CGRectMake(view.frame.origin.x, view.frame.origin.y, view.frame.size.width, window.height-49)];
}
}
}
[UIView commitAnimations];
}
- hide tab ios
- iOS Programming 101: How To Hide Tab Bar in Navigation Interface
- How to hide/show tab bar of a view with a navigation bar in iOS?
- iOS-Hide Status bar
- hide a service in the service tab隐藏服务
- ios上捕捉键盘弹出hide事件
- IOS hide status bar隐藏状态栏
- iOS自定义Tab选择
- 关于Tab控件 iOS
- ios 顶部tab
- IOS tab页跳转
- IOS tab图标问题
- iOS UI Tab开发
- iOS之tab bar
- 仿Ios顶部TAB
- iOS tab栏
- What's the best way to hide a tab in a TabNavigator?
- ionic中隐藏tabs(tabs-item-hide)(首页显示tab,其他页面不显示)
- 利用seo数据分析提高网站收录
- MySQL数据类型
- solaris intrd 进程
- memmove的使用
- 移动应用市场爆炸性增长
- hide tab ios
- 【password】操作系统认证和口令文件及两个相关的参数.
- 1.鹰眼的实现
- Error: Node instance "inst" instantiates undefined
- 【Android】Toast和Looper。Handler消息循环机制
- linux命令3
- “浏览器模式”和“文档模式”之间的区别
- FLEX4 背景 渐变效果!
- 关于Android线程的几点说明