Pen Li 9 лет назад
Родитель
Сommit
b0d6108550

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


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

@@ -256,7 +256,7 @@
     __weak typeof(self) weakself = self;
     UIAlertController *alert = [UIAlertController alertControllerWithTitle:[NSString stringWithFormat:@"Please enter %@ Code",self.barcodeTitle] message:nil preferredStyle:UIAlertControllerStyleAlert];
     [alert addTextFieldWithConfigurationHandler:^(UITextField * _Nonnull textField) {
-       
+        textField.text = weakself.barcode;
         textField.delegate = weakself;
         textField.clearButtonMode = UITextFieldViewModeWhileEditing;
         textField.keyboardType = keyboardType;
@@ -364,6 +364,7 @@
     NSString *cachePath = [NSString stringWithFormat:@"%@/%@/%@",[RAUtils appCacheDirectory],self.name,img];
     
     NSFileManager *fileManager = [NSFileManager defaultManager];
+    // 保证移动目标文件夹存在
     [fileManager createDirectoryAtPath:[cachePath stringByDeletingLastPathComponent] withIntermediateDirectories:YES attributes:nil error:nil];
     NSError *err;
     BOOL res = [fileManager moveItemAtPath:tmpPath toPath:cachePath error:&err];