Skip to content

Commit

Permalink
✨[FEAT] : #177 둘러보기 유저디폴트 설정해씀
Browse files Browse the repository at this point in the history
  • Loading branch information
comeheredart committed Dec 31, 2021
1 parent 2d4b7c3 commit fe7d3a5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -88,6 +89,13 @@ class SNSLoginVC: UIViewController {
$0.addTarget(self, action: #selector(kakaoLogin), for: .touchUpInside)
}

@objc func lookAroundButtonClicked() {
UserDefaults.standard.set(false, forKey: "isLogin")
//여기 둘러보기 계정을 어떻게 할 건지 논의 필요 - 일단은 [email protected] 으로 해놓겠음
UserDefaults.standard.set("[email protected]", forKey: "userId")

self.goToHomeVC()
}

@objc func testLogin() {
snsType = "A"
Expand Down
2 changes: 2 additions & 0 deletions ChaRo-iOS/ChaRo-iOS/Source/Views/VCs/Tabbar/TabbarVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class TabbarVC: UITabBarController {
super.viewDidLoad()
configTabbar()
setTabbarCustomFrame()

print("이거임 : \(UserDefaults.standard.string(forKey: "isLogin"))")
}


Expand Down

0 comments on commit fe7d3a5

Please sign in to comment.