Open
Conversation
iiuoon
reviewed
Nov 26, 2023
Comment on lines
+89
to
+100
| @objc func registerButtonTapped(){ | ||
| // let nextViewController = SecondViewController() | ||
| // navigationController?.pushViewController(nextViewController, animated: true) | ||
| if let idValue = idTextField.text, let passwordValue = passwordTextField.text{ | ||
| UserDefaults.standard.set(idValue, forKey: "id") | ||
| UserDefaults.standard.set(passwordValue, forKey: "password") | ||
| footerLabel.text = "회원가입 완료!" | ||
| // print(UserDefaults.standard.string(forKey: "id")) | ||
| } else { | ||
| footerLabel.text = "값을 입력해주세요." | ||
| } | ||
| } |
Comment on lines
+13
to
+17
| let footerLabel: UILabel = { | ||
| let label = UILabel() | ||
| label.text = "이것은 푸터입니다." | ||
| return label | ||
| }() |
Member
There was a problem hiding this comment.
로그인, 회원가입 성공 여부를 alert로 알려주는 방법도 좋을 것 같아요!
|
|
||
| import UIKit | ||
|
|
||
| class SecondViewController: UIViewController { |
Comment on lines
+56
to
+58
| @objc func logOutTapped(){ | ||
| UserDefaults.standard.removeObject(forKey: "isAutoLogin") | ||
| } |
Member
There was a problem hiding this comment.
로그아웃 로직도 구현되어 있나요?
있다면 버튼을 SecondView에 넣어야 할 것 같아요!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 관련 이슈
#18
✨ 이슈 내용
UserDefaults 를 사용해서 자동로그인 활성화를 해보았습니다.
📸 스크린샷(선택)
📚 레퍼런스 (또는 새로 알게 된 내용) 혹은 궁금한 사항들