DZNWebViewController icon indicating copy to clipboard operation
DZNWebViewController copied to clipboard

toolbarHidden

Open codwam opened this issue 8 years ago • 1 comments

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:

  • (void)viewWillDisappear:(BOOL)animated { [super viewWillDisappear:animated];

    self.navigationController.toolbarHidden = YES; }

  • (void)viewDidDisappear:(BOOL)animated { [super viewDidDisappear:animated]; // In viewWillDisappear do this can't hide while webview still request, may be KVO?? UIProgressView *progressView = [self valueForKey:@"progressView"]; if (progressView) { [progressView removeFromSuperview]; progressView = nil; }

    [UIApplication sharedApplication].networkActivityIndicatorVisible = NO; }

codwam avatar Oct 23 '16 08:10 codwam

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)
}

gonft avatar Mar 02 '17 09:03 gonft