diff --git a/momoIOS/AdminSide/MoimManagement/InputMoimYearViewController.swift b/momoIOS/AdminSide/MoimManagement/InputMoimYearViewController.swift index c58a1e2..f92cb67 100644 --- a/momoIOS/AdminSide/MoimManagement/InputMoimYearViewController.swift +++ b/momoIOS/AdminSide/MoimManagement/InputMoimYearViewController.swift @@ -40,7 +40,7 @@ class InputMoimYearController: UIViewController, UITextFieldDelegate { self.setupKeyboardNotifications() self.setupAction() - + self.codeField.keyboardType = .numberPad self.view.backgroundColor = .white self.setupCustomNav() self.setupLayout() diff --git a/momoIOS/AdminSide/MoimManagement/InputSecurityCodeViewController.swift b/momoIOS/AdminSide/MoimManagement/InputSecurityCodeViewController.swift index cf6b3f7..1e41b95 100644 --- a/momoIOS/AdminSide/MoimManagement/InputSecurityCodeViewController.swift +++ b/momoIOS/AdminSide/MoimManagement/InputSecurityCodeViewController.swift @@ -12,6 +12,8 @@ class InputSecurityCodeViewController: UIViewController { // MARK: - Properties + // private let codeRegEx = "[A-Za-z0-9]{6,12}" + private var isEditingCode: Bool { return self.codeField.isEditing } @@ -38,6 +40,7 @@ class InputSecurityCodeViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() self.view.backgroundColor = .white + self.codeField.delegate = self self.setupKeyboardNotifications() self.setupCustomNav() self.setupLayout()