webView进度条

 

self.progress = [[NJKWebViewProgress alloc] init];

 

    self.webView.delegate = self.progress;

 

    __weak typeof(self) weakSelf = self;

 

    self.progress.progressBlock = ^(float progress) {

 

        weakSelf.progressView.progress = progress;

 

        weakSelf.progressView.hidden = (progress == 1.0);

 

    };

 

    self.progress.webViewProxyDelegate = self;

 

 

 
原文地址:https://www.cnblogs.com/yintingting/p/4565775.html