Преглед изворни кода

增加判断上传数据是否为空,增加上传后移除视图

Pen Li пре 9 година
родитељ
комит
a156129d92

BIN
RedAnt ERP Mobile/RedAnt ERP Mobile.xcworkspace/xcuserdata/macmini1.xcuserdatad/UserInterfaceState.xcuserstate


+ 3 - 1
RedAnt ERP Mobile/common/Functions/offline/SelectUploadOrderViewController.m

@@ -90,10 +90,12 @@
         
     }
     
-    if (self.returnValue) {
+    if (self.returnValue && uploadArray.count) {
         self.returnValue(uploadArray);
     }
     
+    [self dismissViewControllerAnimated:true completion:nil];
+    
 }
 
 #pragma mark - dataSource