-
Notifications
You must be signed in to change notification settings - Fork 6
[Feat] #81 - 코스업로드하기 API 연결 완료 #87
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
Conversation
lsj8706
left a comment
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.
수고하셨습니다~!
코멘트들 확인해주세요!
| self.mapImageView.setImage(with: imageUrl) | ||
| } | ||
|
|
||
| private func pushToCourseDiscoveryVC() { |
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.
CourseDiscoveryVC는 탭바에 기본으로 들어가 있는 VC여서 CourseDiscoveryVC로 가고 싶다면 이렇게 새로 VC를 만들어서 push를 하는게 아니라 Pop을 해서 되돌아가야합니다..! 밑에 코멘트 참고해주세요~!
| do { | ||
| let responseDto = try result.map(BaseResponse<RunningRecordResonseData>.self) | ||
| if responseDto.status == 200 { | ||
| self.pushToCourseDiscoveryVC() |
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.
| self.pushToCourseDiscoveryVC() | |
| self.navigationController?.popToRootViewController(animated: true) |
이렇게 하면 navigation Stack의 가장 밑에 있는 최초의 VC로 돌아가게 됩니다. 여기서는 CourseDiscoveryVC가 되는 것이죠!
...ct-iOS/Runnect-iOS/Network/Dto/CourseDiscoveryDto/RequestDto/CourseUploadingRequestDto.swift
Outdated
Show resolved
Hide resolved
| object: nil) | ||
| } | ||
|
|
||
| func setData(runningModel: RunningModel) { |
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.
혹시 기존에 여기에 setData 함수를 제가 만들어 둔게 있는데 그 함수는 삭제하신건가요? 아니면 Pull을 안받아서 없는걸까요...?
여기서는 runningModel 대신에 제가 원래 setData에 넣어둔 Course 객체를 이용해 UI를 잘 뿌려주고 있었습니다..! 딱히 건드릴 필요 없었다는 의미에요~!
#82
여기 PR에 적혀있는 내용 참고해주세요~!
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.
헛 풀을 안받고 pr날려서 ㅠ
Runnect-iOS/Runnect-iOS/Presentation/CourseDiscovery/Views/VC/CourseUploadVC.swift
Show resolved
Hide resolved
Runnect-iOS/Runnect-iOS/Presentation/CourseDiscovery/Views/VC/CourseUploadVC.swift
Outdated
Show resolved
Hide resolved
Runnect-iOS/Runnect-iOS/Presentation/CourseDiscovery/Views/VC/CourseUploadVC.swift
Outdated
Show resolved
Hide resolved
Runnect-iOS/Runnect-iOS/Network/Model/RunningModel/RunningModel.swift
Outdated
Show resolved
Hide resolved
lsj8706
left a comment
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.
👍👍
🌱 작업한 내용
🌱 PR Point
📸 스크린샷
📮 관련 이슈