`

如何隐藏tabbar,在子viewController中。

    博客分类:
  • iOS
 
阅读更多

很简单,每个UIViewController都有一个 hidesBottomBarWhenPushed 属性。

只需要你在push这个viewController之前.设置该controller的此属性为 NO,即tabbar就会隐藏。

 

    vc.hidesBottomBarWhenPushed = isHide;

 

    [self.navigationController pushViewController:vc animated:YES];

分享到:
评论

相关推荐

    SwiftUI-TabBar+Nav

    SwiftUI中实现Swift、OC中 TabBar和Nav的导航功能,以及跳转二级界面或指定界面隐藏TabBar

    ViewController侧换的TabBar

    作者Liqiankun,源码DLNavigationTabBar,在NavigationBar上添加ViewController侧换的TabBar。

    iphone开发基础控件UITabBar及UITabBarController

    1、UITabBarController是一个容器,一般作为整个程序的rootViewController,容器包含多个ViewController(页面),每个ViewController(页面)对应一个Tab,Tab集中在UITabBar上面显示。 2、UITabBarController容器...

    MJdeDouBan:我的豆瓣客户端

    同时,对其在NavigationController中TabBar的隐藏问题进行了修正,使得ViewController在被push和pop时能够正确的隐藏和显示TabBar。 客户端与服务器的通信采用,数据交互的格式为json,采用实现json到模型的转换。 ...

    SCSideBarController:仿网易新闻的sideBarController

    2.如果需要设置标题和icon,则需要设置子控制器的tabBarItem属性 vc.tabBarItem.title = @"首页"; vc.tabBarItem.image = [UIImage imageNamed:@"xxx"]; 3.如果需要设置文字的属性,可调用tabBarItem的setTitle

    Animated Tab Bar:Swift UI 模块库,用于向 iOS 标签栏项添加动画-开源

    在你的故事板或笔尖中创建一个新的 UITabBarController,在你的故事板或笔尖中将 UITabBarController 的类设置为 RAMAnimatedTabBarController,对于每个 UITabBarItem,将类设置为 RAMAnimatedTabBarItem,为每个 ...

    SCTopBarController:顶部标签栏控制器

    @interface ViewController : SCTopBarController @end 1.实例化一些控制器, 并添加为当前类的子控制器 UIViewController *vc = [[UIViewController alloc] init]; [self addChildViewController:vc]; 2.设置标题 vc...

    TabContainerViewController:顶部显示多标签页,切换标签,内容也跟着切换

    类似UITabBarController,只是这个TabBar是显示在页面顶部。How to use写一个继承自TabContainerViewController的控制器,在控制器中通过调用[self reloadData]来加载。在这之前需要实现TabContainerViewController...

    Swfit 转场动画类库(iPhone源代码)

    来源: github/... 主要功能: Push & Present & TabBar transition animation 支持完整的回调 支持 modal viewController data callback 支持自定义动画 支持更新状态栏样式 支持 Push & Present & TabBar 手势

    Swfit 转场动画类库

    作者dianqk,源码transitiontreasury,... 支持 modal viewController data callback 支持自定义动画 支持更新状态栏样式 支持 Push & Present & TabBar 手势. 功能完善、简便实用的视图转场类库及使用演示。

    KeKeKit:一个8年iOS整理一点框架东西

    为了方便使用,建议:AppDelegate继承KeKeAppDelegate根视图类如ViewController继承KeKeViewController KeKeKit当下不完整功能清单自定义tabbar:自定义tabbar的图文样式,监听出现消失。v0.0.29:UITextField:...

Global site tag (gtag.js) - Google Analytics