如何创建pinterest样式隐藏/取消隐藏导航/标签栏? [英] how to create pinterest style hiding/unhiding nav/tab bar?
问题描述
如何创建一个隐藏/取消隐藏的导航栏,就像pinterest和许多其他应用程序正在做的那样?我知道基本的想法是使用UIScrollView委托并检测我是否向上或向下滚动并显示基于该导航栏的导航栏。如果导航栏被隐藏,我还应该调整导航控制器视图高度吗?这是如何工作的?
How do I create a hiding/unhiding nav bar like what pinterest and many other apps is doing? I know the basic idea is to use the UIScrollView delegate and detect whether I am scrolling up or down and show the nav bar based on that. So should I also adjust the navcontroller view height if the nav bar is hidden? How does this work?
推荐答案
我有一个位于github上的示例项目,它完全执行pinterest / piictu风格'隐藏UINavigationController / UITabBarController stuff'
I have a sample project located on github that does exactly the pinterest/piictu style 'hide the UINavigationController / UITabBarController stuff'
https://github.com/ tonymillion / ExpandingView
这篇关于如何创建pinterest样式隐藏/取消隐藏导航/标签栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!