Skip to content

Commit

Permalink
유저디폴트
Browse files Browse the repository at this point in the history
  • Loading branch information
qodhrkawk committed Nov 15, 2020
1 parent 6337a81 commit 5972640
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Mongle/Mongle/Source/VCs/LogInVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ class LogInVC: UIViewController {

vcName.modalPresentationStyle = .fullScreen
if self.shouldBeDismissed {

self.dismiss(animated: true, completion: nil)
}
else{
Expand Down
2 changes: 2 additions & 0 deletions Mongle/Mongle/Source/VCs/SignUpEmailVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Mongle/Mongle/Source/VCs/UnderTabBarController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ class UnderTabBarController: UITabBarController {

@objc func makeThemeButtonAction(sender: UIButton?){
if UserDefaults.standard.string(forKey: "token") == "guest" {
hideSubMenus()
self.presentLoginRequestPopUp()
return
}
Expand Down
1 change: 1 addition & 0 deletions Mongle/Mongle/Source/VCs/WritingSentenceSecondVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ class WritingSentenceSecondVC: UIViewController, BookSearchDataDelegate {

self.publisherTextField.text = book.bookPublisher


}


Expand Down

0 comments on commit 5972640

Please sign in to comment.