Skip to content
This repository was archived by the owner on Nov 29, 2022. It is now read-only.
This repository was archived by the owner on Nov 29, 2022. It is now read-only.

toolbarHidden #63

Description

@codwam

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions