-
Notifications
You must be signed in to change notification settings - Fork 0
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
[마요] 메모장 앱 만들기 #16
base: main
Are you sure you want to change the base?
[마요] 메모장 앱 만들기 #16
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다 코드 리뷰 참고해서 수정해주세요!
CC7D36DB2B04DA780069F109 /* SnapKit-Dynamic */, | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
스냅킷 추가하실 때 SnapKit-Dynamic말고 SnapKit 하나만 추가해주세요!
make.leading.equalTo(view.safeAreaLayoutGuide.snp.leading).offset(20) | ||
make.trailing.equalTo(view.safeAreaLayoutGuide.snp.trailing).offset(-20) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make.leading.trailing.equalTo(view.safeAreaLayoutGuide.snp.leading).inset(20)
한 줄로 가능합니다
@objc func backButtonTapped() { | ||
guard let updatedMemo = createUpdatedMemo() else { | ||
return | ||
} | ||
|
||
detailDelegate?.didUpdateDetailMemo(updatedMemo, atIndex: index!) | ||
self.navigationController?.popViewController(animated: true) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 함수를 만들고 호출 안 해주고 있어서 데이터 전달에 문제가 있는 것 같아요
delegate는 MemoEditDelegate 사용하도록 수정해주세요!
protocol MemoDetailDelegate: AnyObject { | ||
func didUpdateDetailMemo(_ memo: Memo, atIndex index: Int) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
backButtonTapped 함수에서 값을 이미 넘겨주기 때문에 이 delegate는 필요없을 것 같아요!
💡 Description
메모를 작성하고, 다시 들어가서 수정한 내용이 뷰컨트롤러에 업데이트가 되지 않아요,,ㅜㅜㅜ
📝 Progress