Commit 6efec520 authored by yuzheng.tz's avatar yuzheng.tz

修复照片预览页的内存泄漏

parent d12a1e54
......@@ -365,11 +365,12 @@
weakToolBar.hidden = weakSelf.isHideNaviBar;
};
}
__weak typeof(_tzImagePickerVc) weakTzImagePickerVc = _tzImagePickerVc;
[cell setImageProgressUpdateBlock:^(double progress) {
weakSelf.progress = progress;
if (progress >= 1) {
if (weakSelf.alertView) {
[_tzImagePickerVc hideAlertView:weakSelf.alertView];
[weakTzImagePickerVc hideAlertView:weakSelf.alertView];
[weakSelf doneButtonClick];
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment