__weak typeof (self)weakSelf = self;
[UIView animateWithDuration:0.25f delay:0.3f options:UIViewAnimationOptionCurveEaseOut animations:^{
weakSelf.progressView.transform = CGAffineTransformMakeScale(1.0f, 1.4f);
} completion:^(BOOL finished) {
weakSelf.progressView.hidden = YES;
}];
这里是不需要 weakSelf的,直接用self就可以
iOS WKWebView添加网页加载进度条一、效果展示 二、主要步骤 1.添加UIProgressView属性 2.初始化progressView 3.添加KVO,WKWebView有一个属性estimatedPro...