LOLXDXPLOL
LOLXDXPLOL

Reputation: 611

Hide Navigation Bar like facebook

I'm having a little problem... I have a UIWebViewController with a UINavigationBar predefined because it's one of the managed ViewControllers by a UINavigationController. I want to hide this navigationbar (only in this viewcontroller) when I scroll, like the Facebook app does. (The navigation bar slides up at the sam speed that the user is scrolling, the elements in it fade away, the color of the navigationbar stays visible behind the statusbar, and when you scroll up again the navigationbar appears again, also with the same speed as the user is scrolling.) This is maybe much to ask, but I'm new to programming and have no idea how to start this... Please help?

Thanks in advance!!!

Upvotes: 0

Views: 1110

Answers (1)

Philipp Kinschel
Philipp Kinschel

Reputation: 403

set your NavigationController to hidesBarOnSwipe = true

if let navController = self.navigationController {
    navController.hidesBarsOnSwipe = true
}

Upvotes: -1

Related Questions