Эх сурвалжийг харах

1.修改上传列表Clear后视图更新,增加空指针判断。

Pen Li 9 жил өмнө
parent
commit
9e2224fc2e

BIN
RA Image/RA Image.xcodeproj/project.xcworkspace/xcuserdata/macmini1.xcuserdatad/UserInterfaceState.xcuserstate


+ 3 - 1
RA Image/RA Image/UploadViewController.m

@@ -318,7 +318,9 @@
     upCell.progress = 0;
     upCell.state = nil;
     upCell.errorMsg = nil;
-    upCell.operation.updateUI = nil;
+    if (upCell.operation) {
+        upCell.operation.updateUI = nil;
+    }
 //    AppDelegate* Appdelegate=(AppDelegate*)[UIApplication sharedApplication].delegate;
 //    if (indexPath.row < Appdelegate.uploadManager.arr_queue.count) {// Clear List先调用此方法,再调用numberOfRowsInSection,所以先判断避免Crash
 //        NSDictionary * item_json = Appdelegate.uploadManager.arr_queue[indexPath.row];