-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BMO] 회원가입: MVC 역할 분리, Delegate 역할 재정의 #25
Open
BMO5
wants to merge
18
commits into
code-squad:BMO
Choose a base branch
from
BMO5:SignUp-Step-2-UseClosure
base: BMO
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains 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
idTextField, idTextFieldDelegate 를 같이 상속, 채택받던 객체를 TextFieldDelegate만 채택하도록 분리 Delegate에서는 Validater라는 하위 모델에서 텍스트 판단을 하도록 변경
idTextField 커밋과 동
idTextFieldDelegate 이유와 동
idTextFieldDelegate 이유와 동
기존의 분리 안된 객체 파일 삭제
유저가 입력한 정보가 valid한지 알 수 있는 메소드를 가진 프로토콜 생성 버튼 활성화를 하기위해 사용
기존의 딕셔너리 구조에서 UserInfoValidable 프로토콜을 채택한 타입의 배열로 변경
Next를 누르면 다음 TextField로 가게끔. name에서 Valid인 경우 UserInfo를 넣지 않았는데, 이때문에 guard 문에서 걸려서 리턴되던 것 수정
다음 버튼을 눌러 push 까지..
NameTextField에서 엔터만 누르면 다음 화면으로 갔던 것 수정
클로저를 넘겨줄 타입
넘어온 정보를 판단하는 객체
Text들의 State를 알기 위한 Validable 프로토콜 추가 State를 확인하고 버튼의 Enable 여부 결정
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.
작업 목록
학습키워드
고민과 해결
escaping
을 알게되어 Delegate 메소드가 실행될 때마다 Text를 컨트롤러로 넘겨주도록 했습니다.질문거리
UseCase를 잘 이해한건지 궁금합니다. 예전 강의에서 사용자가 어떤 것을 눌렀을 때, 뭘 할 것인지 결정해놓는 시나리오 같은 것으로 자판기 앱에서는
자판기에 돈을 넣는다
까지가 UseCase라고 하셨던게 기억이 납니다. 저의 경우 idTextField를 눌러서 text를 입력할 때, 뷰 컨트롤러에서는 id를 검증하는 곳으로 text를 보내고 password TextField를 입력할 때는 password를 검증하는 곳으로 text를 보냅니다. 이런 시나리오를 UseCase라고 생각하는데 제가 잘 이해한게 맞을까요?어제 저녁까지 PR을 보내려고 했지만, 다 끝내니 너무 늦어 PR보내기 죄송해 아침에 일어나 보냅니다...😿