博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Hiding the iPhone Tab Bar with TTNavigator
阅读量:6150 次
发布时间:2019-06-21

本文共 1109 字,大约阅读时间需要 3 分钟。

hot3.png

If you are using the iPhone Tab Bar in your application, but you need to hide the Tab Bar in any specific situation. And you’re using (Three20h) to manage yours View Controllers. This is a very easy task.

Let’s assume that you want to hide the Tab Bar when push the view to the controller. Follow this steps:

  • First, add the  to your class.
  • Second, add your class as delegate of . One good place to put this code is your initmethod:
// Delegation from TTNavigator. [[TTNavigator navigator] setDelegate:self];
  • Third, add the method  to your code.
    This method will be called before the view been pushed. So you have enough time to
    configure some properties of him. The property that we want to edit is the 
    . So we’ll have this piece of code:
-(void)navigator:(TTBaseNavigator *)navigator     willOpenURL:(NSURL *)URLinViewController:(UIViewController *)controller{          controller.hidesBottomBarWhenPushed = YES;}

You’re done. This code wil hide the Tab Bar when the view has been pushed and

automatically will show the Tab Bar back when the view has been popped.

转载于:https://my.oschina.net/tonyyang/blog/59957

你可能感兴趣的文章
我的友情链接
查看>>
PCS子层有什么用?
查看>>
查看端口,关闭端口
查看>>
代码托管平台简介
查看>>
linux:yum和apt-get的区别
查看>>
Sentinel 1.5.0 正式发布,引入 Reactive 支持
查看>>
数据库之MySQL
查看>>
2019/1/15 批量删除数据库相关数据
查看>>
数据类型的一些方法
查看>>
Mindjet MindManager 2019使用教程:
查看>>
游戏设计的基本构成要素有哪些?
查看>>
详解 CSS 绝对定位
查看>>
AOP
查看>>
我的友情链接
查看>>
NGUI Label Color Code
查看>>
.NET Core微服务之基于Polly+AspectCore实现熔断与降级机制
查看>>
vue组件开发练习--焦点图切换
查看>>
浅谈OSI七层模型
查看>>
Webpack 2 中一些常见的优化措施
查看>>
移动端响应式
查看>>