iOS 应用中的全屏滚动
Full Screen Scrolling in iOS app
是否有任何库可以在 iOS 应用程序(如 Facebook 应用程序)中为我们提供全屏滚动。 On Scrolling navigation bar got hide and only status bar will showed when we scroll up and when we starts down scrolling then navigation bar starts showing.我想要完整的 Swift 代码中的此功能。如果可能的话请告诉我。
与 Facebook 应用程序类似,iOS 包括一种自动隐藏本机导航栏的方法。
在您有 TableView
/ScrollView
的 ViewController
中,您可以通过调用
将导航栏设置为滑动时自动隐藏
self.navigationController?.hidesBarsOnSwipe = true
现在,假设您的 tableView 已填充到足以让用户向下滚动,当用户滚动浏览它时,导航栏应该隐藏!根据您的要求,状态栏将显示与导航栏相同的颜色。当用户向上滚动列表时,它也会再次显示。
是否有任何库可以在 iOS 应用程序(如 Facebook 应用程序)中为我们提供全屏滚动。 On Scrolling navigation bar got hide and only status bar will showed when we scroll up and when we starts down scrolling then navigation bar starts showing.我想要完整的 Swift 代码中的此功能。如果可能的话请告诉我。
与 Facebook 应用程序类似,iOS 包括一种自动隐藏本机导航栏的方法。
在您有 TableView
/ScrollView
的 ViewController
中,您可以通过调用
self.navigationController?.hidesBarsOnSwipe = true
现在,假设您的 tableView 已填充到足以让用户向下滚动,当用户滚动浏览它时,导航栏应该隐藏!根据您的要求,状态栏将显示与导航栏相同的颜色。当用户向上滚动列表时,它也会再次显示。