Skip to content

Commit 6219374

Browse files
wanghenghengEase
authored and
Ease
committed
iOS 9 的坑 - 修改UI的动作要放在主线程
1 parent 683e8b8 commit 6219374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Coding_iOS/Vendor/MJPhotoBrowser/MJPhotoLoadingView.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ - (void)setProgress:(float)progress
6262
_progress = progress;
6363
_progressView.progress = progress;
6464
if (progress >= 1.0) {
65-
[_progressView removeFromSuperview];
65+
[_progressView performSelectorOnMainThread:@selector(removeFromSuperview) withObject:nil waitUntilDone:YES];
6666
}
6767
}
6868
@end

0 commit comments

Comments
 (0)