From 59726403e7e32221cb5234bc9598e4439261517e Mon Sep 17 00:00:00 2001 From: qodhrkawk Date: Sun, 15 Nov 2020 16:49:12 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9C=A0=EC=A0=80=EB=94=94=ED=8F=B4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Mongle/Mongle/Source/VCs/LogInVC.swift | 1 + Mongle/Mongle/Source/VCs/SignUpEmailVC.swift | 2 ++ Mongle/Mongle/Source/VCs/UnderTabBarController.swift | 1 + Mongle/Mongle/Source/VCs/WritingSentenceSecondVC.swift | 1 + 4 files changed, 5 insertions(+) diff --git a/Mongle/Mongle/Source/VCs/LogInVC.swift b/Mongle/Mongle/Source/VCs/LogInVC.swift index 22174e6..f2fed8b 100644 --- a/Mongle/Mongle/Source/VCs/LogInVC.swift +++ b/Mongle/Mongle/Source/VCs/LogInVC.swift @@ -537,6 +537,7 @@ class LogInVC: UIViewController { vcName.modalPresentationStyle = .fullScreen if self.shouldBeDismissed { + self.dismiss(animated: true, completion: nil) } else{ diff --git a/Mongle/Mongle/Source/VCs/SignUpEmailVC.swift b/Mongle/Mongle/Source/VCs/SignUpEmailVC.swift index 2ab0ba9..6779b2b 100644 --- a/Mongle/Mongle/Source/VCs/SignUpEmailVC.swift +++ b/Mongle/Mongle/Source/VCs/SignUpEmailVC.swift @@ -792,6 +792,8 @@ class SignUpEmailVC: UIViewController, UITextFieldDelegate{ guard let token = token as? String else { return } print(token) UserDefaults.standard.set(token, forKey: "token") + UserDefaults.standard.set(self.email, forKey: "email") + UserDefaults.standard.set(self.password, forKey: "password") // // self.view.window?.rootViewController?.dismiss(animated: false, completion: { // let sceneDelegate = UIApplication.shared.delegate as! SceneDelegate diff --git a/Mongle/Mongle/Source/VCs/UnderTabBarController.swift b/Mongle/Mongle/Source/VCs/UnderTabBarController.swift index d0eebd2..6e97381 100644 --- a/Mongle/Mongle/Source/VCs/UnderTabBarController.swift +++ b/Mongle/Mongle/Source/VCs/UnderTabBarController.swift @@ -402,6 +402,7 @@ class UnderTabBarController: UITabBarController { @objc func makeThemeButtonAction(sender: UIButton?){ if UserDefaults.standard.string(forKey: "token") == "guest" { + hideSubMenus() self.presentLoginRequestPopUp() return } diff --git a/Mongle/Mongle/Source/VCs/WritingSentenceSecondVC.swift b/Mongle/Mongle/Source/VCs/WritingSentenceSecondVC.swift index 501d189..51691cc 100644 --- a/Mongle/Mongle/Source/VCs/WritingSentenceSecondVC.swift +++ b/Mongle/Mongle/Source/VCs/WritingSentenceSecondVC.swift @@ -151,6 +151,7 @@ class WritingSentenceSecondVC: UIViewController, BookSearchDataDelegate { self.publisherTextField.text = book.bookPublisher + }