From fe7d3a5f78da699850f2844ef51c3c857fdb65cb Mon Sep 17 00:00:00 2001 From: Jen Date: Fri, 31 Dec 2021 16:27:22 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8[FEAT]=20:=20#177=20=EB=91=98=EB=9F=AC?= =?UTF-8?q?=EB=B3=B4=EA=B8=B0=20=EC=9C=A0=EC=A0=80=EB=94=94=ED=8F=B4?= =?UTF-8?q?=ED=8A=B8=20=EC=84=A4=EC=A0=95=ED=95=B4=EC=94=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ChaRo-iOS/Source/Views/VCs/SignScene/SNSLoginVC.swift | 8 ++++++++ .../ChaRo-iOS/Source/Views/VCs/Tabbar/TabbarVC.swift | 2 ++ 2 files changed, 10 insertions(+) diff --git a/ChaRo-iOS/ChaRo-iOS/Source/Views/VCs/SignScene/SNSLoginVC.swift b/ChaRo-iOS/ChaRo-iOS/Source/Views/VCs/SignScene/SNSLoginVC.swift index be1b2dab..65eeb00c 100644 --- a/ChaRo-iOS/ChaRo-iOS/Source/Views/VCs/SignScene/SNSLoginVC.swift +++ b/ChaRo-iOS/ChaRo-iOS/Source/Views/VCs/SignScene/SNSLoginVC.swift @@ -35,6 +35,7 @@ class SNSLoginVC: UIViewController { $0.titleLabel?.font = .notoSansMediumFont(ofSize: 14) $0.setTitleColor(.mainBlue, for: .normal) $0.contentHorizontalAlignment = .right + $0.addTarget(self, action: #selector(lookAroundButtonClicked), for: .touchUpInside) } let logoImageView = UIImageView().then { @@ -88,6 +89,13 @@ class SNSLoginVC: UIViewController { $0.addTarget(self, action: #selector(kakaoLogin), for: .touchUpInside) } + @objc func lookAroundButtonClicked() { + UserDefaults.standard.set(false, forKey: "isLogin") + //여기 둘러보기 계정을 어떻게 할 건지 논의 필요 - 일단은 ios@gmail.com 으로 해놓겠음 + UserDefaults.standard.set("ios@gmail.com", forKey: "userId") + + self.goToHomeVC() + } @objc func testLogin() { snsType = "A" diff --git a/ChaRo-iOS/ChaRo-iOS/Source/Views/VCs/Tabbar/TabbarVC.swift b/ChaRo-iOS/ChaRo-iOS/Source/Views/VCs/Tabbar/TabbarVC.swift index 8904143a..f720b954 100644 --- a/ChaRo-iOS/ChaRo-iOS/Source/Views/VCs/Tabbar/TabbarVC.swift +++ b/ChaRo-iOS/ChaRo-iOS/Source/Views/VCs/Tabbar/TabbarVC.swift @@ -19,6 +19,8 @@ class TabbarVC: UITabBarController { super.viewDidLoad() configTabbar() setTabbarCustomFrame() + + print("이거임 : \(UserDefaults.standard.string(forKey: "isLogin"))") }