Просмотр исходного кода

RA Image
修改上传队列完成时的提示,根据设置进行提示

Ray Zhang 9 лет назад
Родитель
Сommit
f961f778fc

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


+ 8 - 1
RA Image/RA Image/BasicModeViewController.m

@@ -63,8 +63,15 @@
                 break;
                 break;
                 
                 
             case QueueStatusFinishWithError:
             case QueueStatusFinishWithError:
-                msg=@"Some of the tasks have not been successfully uploaded.\n Check upload list for detail.";
+            {
+                NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
+                NSDictionary* dict=[userDefaults objectForKey:@"UploadSettingKey"];
+                if([dict[@"auto_rm_error"] boolValue])
+                    msg=@"Upload is complete.";
+                else
+                    msg=@"Some of the tasks have not been successfully uploaded.\n Check upload list for detail.";
                 break;
                 break;
+            }
             default:
             default:
                 break;
                 break;
         }
         }