dzenbot / DZNWebViewController

A simple web browser for iPhone & iPad with similar features than Safari's
https://www.cocoacontrols.com/controls/dznwebviewcontroller
MIT License
1.06k stars 181 forks source link

Hide NavigationBar #26

Closed 2Pat closed 9 years ago

2Pat commented 9 years ago

Is it possible to hide the NavigationBar?

If I add to ViewDidLoad this: [[self navigationController] setNavigationBarHidden:YES animated:YES]; it is hidden. But after Swipe it shows again. I don't won't to turn off WVC.hideBarsWithGestures = YES;.

Short: How can I disable / hide the NavigationBar permanently?

dzenbot commented 9 years ago

Did you try using hideBarsWithGestures?

2Pat commented 9 years ago

I want to hide the Navigation Bar on top permanently and the Toolbar at the bottom just if I swipe. If I deactivate hideBarsWithGestures, the Toolbar won't disappear when I swipe.

dzenbot commented 9 years ago

Exactly, the toolbar's isn't supported yet. But go ahead and submit a PR for that if you'd like. At least you got the navigation bar hidden for good like you first mentioned 😉

2Pat commented 9 years ago

I need it in this combination. But thanks anyway :smiley:

dzenbot commented 9 years ago

You're a developer. I'm sure you can make it yourself 😉