显示 隐藏 tabbar的方法(环信UI中使用的)
来源:互联网 发布:中央财经大学命案知乎 编辑:程序博客网 时间:2024/05/22 13:15
隐藏tabbar
*/
- (void)hideTabBar {
if (self.tabBarController.tabBar.hidden == YES) {
return;
}
UIView *contentView;
if ( [[self.tabBarController.view.subviewsobjectAtIndex:0]isKindOfClass:[UITabBarclass]] )
contentView = [self.tabBarController.view.subviewsobjectAtIndex:1];
else
contentView = [self.tabBarController.view.subviewsobjectAtIndex:0];
contentView.frame =CGRectMake(contentView.bounds.origin.x, contentView.bounds.origin.y, contentView.bounds.size.width, contentView.bounds.size.height + self.tabBarController.tabBar.frame.size.height);
self.tabBarController.tabBar.hidden = YES;
}
/**
* 显示tabbar
*/
- (void)showTabBar
{
if (self.tabBarController.tabBar.hidden == NO)
{
return;
}
UIView *contentView;
if ([[self.tabBarController.view.subviewsobjectAtIndex:0]isKindOfClass:[UITabBarclass]])
contentView = [self.tabBarController.view.subviewsobjectAtIndex:1];
else
contentView = [self.tabBarController.view.subviewsobjectAtIndex:0];
contentView.frame =CGRectMake(contentView.bounds.origin.x, contentView.bounds.origin.y, contentView.bounds.size.width, contentView.bounds.size.height - self.tabBarController.tabBar.frame.size.height);
self.tabBarController.tabBar.hidden = NO;
}
- 显示 隐藏 tabbar的方法(环信UI中使用的)
- Iphone隐藏和显示TabBar的方法
- Iphone隐藏和显示TabBar的方法
- TabBar隐藏显示的两种方法
- ios隐藏和显示TabBar的方法
- Iphone隐藏和显示TabBar的方法
- 隐藏TabBar的方法
- 隐藏tabBar的方法
- tabbar的隐藏和显示
- 隐藏和显示TabBar的方法的简单总结
- 隐藏Tabbar的一些方法
- 隐藏TabBar底部的方法
- 隐藏TabBar的一些方法
- iOS 隐藏TabBar 的方法
- NavBar与TabBar混合使用时的隐藏与显示
- 使用系统自带的TabBar的tabBarController,切换界面时,显示/隐藏tabBar
- tabbarcontroller的tabbar的显示与隐藏
- 一段隐藏显示tabbar的代码
- iOS 9 适配系列教程
- 自定义上传按钮样式的终极解决方案_input透明法
- 键盘事件的调用顺序及获取键盘大小
- 从unity4升级到unity5模型显示问题
- iOS8开发之 PHAsset 保存图片到相册(相机胶卷) 详解一
- 显示 隐藏 tabbar的方法(环信UI中使用的)
- DB2 DPF环境下,查看表空间PAGE的使用情况
- 模板_LCA(最近公共祖先)
- angular.js[1]
- Linux下C语言多线程编程实例(用C语言模拟word软件,一边输入,一边统计字符)
- 单例模式
- Linux/Mac OS 常用命令记录
- 使用poi解析excel表格
- memcached在centos下自启动脚本