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

toolbarHidden #63

Open codwam opened 7 years ago

codwam commented 7 years ago

I have some questions about DZNWebViewController while push it then pop it:

  1. toolbar not hidden.
  2. progressView not hidden while request unfinished.
  3. networkActivityIndicatorVisible not hidden.

My Subclass solution:

gonft commented 7 years ago

Add Subclass solution:

override func viewWillDisappear(_ animated: Bool) {
        super.viewWillDisappear(animated)

        self.automaticallyAdjustsScrollViewInsets = false
        self.navigationController?.hidesBarsOnSwipe = false
        self.navigationController?.hidesBarsWhenKeyboardAppears = false
        self.navigationController?.hidesBarsWhenVerticallyCompact = false

        self.navigationController?.setToolbarHidden(true, animated: false)
}