简体   繁体   English

实施导航栏和附加在导航栏底部的扩展视图

[英]Implementing Navigation-bar and an Extension view attached to the bottom of nav-bar

What's the right way to implement a hides-on-scroll navigation bar along with an extension view attached to the navigation bar's bottom. 实施滚动隐藏式导航栏以及附加到导航栏底部的扩展视图的正确方法是什么。 And on scroll the navigation bar gets hidden and the extension view sticks to the status bar. 在滚动时,导航栏被隐藏,而扩展视图则停留在状态栏上。

You can use TLYShyNavBar library to implement this feature if you want extension view to stick to status bar. 如果您希望扩展视图停留在状态栏上,则可以使用TLYShyNavBar库来实现此功能。 If you just want navigationBar to hide along with extension then use hidesBarsOnSwipe property 如果您只想将NavigationBar和扩展名一起隐藏,请使用hidesBarsOnSwipe属性

navigationController?.hidesBarsOnSwipe = true

refer this thread to read more about this behaviour. 请参阅此线程以了解有关此行为的更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM