Przeglądaj źródła

1.修改RA Image POP模式下PO#在不同Mode下键盘类型。

Pen Li 8 lat temu
rodzic
commit
4b9e81024b

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


+ 1 - 1
RA Image/RA Image/PopModeViewController.h

@@ -10,6 +10,6 @@
 
 @interface PopModeViewController : BasicModeViewController
 
-
+@property (nonatomic,assign) UIKeyboardType inputKeyboardType;
 
 @end

+ 1 - 1
RA Image/RA Image/PopModeViewController.m

@@ -156,7 +156,7 @@
 }
 
 - (IBAction)typeBtnClick:(UIButton *)sender {
-    [self showBarcodeInput:UIKeyboardTypeNumberPad];
+    [self showBarcodeInput:self.inputKeyboardType];//UIKeyboardTypeNumberPad
 }
 
 #pragma mark - Super Method

+ 5 - 0
RA Image/RA Image/RootViewController.m

@@ -158,6 +158,11 @@ static NSString *kLastMode = @"lastChooseMode";
         modeVC = vc;
     }else if ([cell.mode isEqualToString:@"POP"]||[cell.mode isEqualToString:@"Receiving"]||[cell.mode isEqualToString:@"Returns"]) {
         PopModeViewController *vc = [[UIStoryboard storyboardWithName:@"Mode" bundle:nil] instantiateViewControllerWithIdentifier:@"PopModeViewController"];
+        if (![cell.mode isEqualToString:@"Receiving"]) {
+            vc.inputKeyboardType = UIKeyboardTypeNumberPad;
+        } else {
+            vc.inputKeyboardType = UIKeyboardTypeDefault;
+        }
         modeVC = vc;
     }