swift 中隐藏导航栏_在Swift中隐藏和显示导航栏和标签栏

swift 中隐藏导航栏

Since everyone wants their app to look neat, attractive, and fascinating, non-standard UI elements and animations are becoming very popular. HidingNavigationBar is such a framework. It helps hide navigation tools while scrolling and unhide them when you stop.

由于每个人都希望他们的应用看起来整洁,吸引人并且引人入胜,因此非标准的UI元素和动画正变得非常流行。 HidingNavigationBar是这样的框架。 它有助于在滚动时隐藏导航工具,并在停止时取消隐藏它们。

In this article, I will explain how to use the framework and why it seems to be the best option to choose.

在本文中,我将解释如何使用该框架以及为什么它似乎是最佳选择。

开始吧 (Let’s Start)

According to the documentation:

根据文档

“HidingNavigationBar supports hiding/showing of the following view elements:

“ HidingNavigationBar支持隐藏/显示以下视图元素:

- UINavigationBar

-UINavigationBar

- UINavigationBar and an extension UIView

-UINavigationBar和扩展UIView

- UINavigationBar and a UIToolbar

-UINavigationBar和UIToolbar

- UINavigationBar and a UITabBar”

-UINavigationBar和UITabBar”

Note: HidingNavigationBar only works with UINavigationBars that have translucent set to true.

注意:HidingNavigationBar仅适用于将半透明设置为 true UINavigationBar

安装 (Installation)

Basically, there are two ways of installing HidingNavigationBar:

基本上,有两种安装HidingNavigationBar的方法:

  1. With

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值