Open codwam opened 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)
}
I have some questions about DZNWebViewController while push it then pop it:
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; }