From 9e670d3fd94b8891cc7e03afedf52fa14146e74e Mon Sep 17 00:00:00 2001 From: LeeMyeongJin Date: Sat, 14 Oct 2023 17:48:44 +0900 Subject: [PATCH 1/3] =?UTF-8?q?[Fix]=20#196=20-=20asyncAfter=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Presentation/CourseDetail/VC/CourseDetailVC.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Runnect-iOS/Runnect-iOS/Presentation/CourseDetail/VC/CourseDetailVC.swift b/Runnect-iOS/Runnect-iOS/Presentation/CourseDetail/VC/CourseDetailVC.swift index ab2aa6c6..0c0667f6 100644 --- a/Runnect-iOS/Runnect-iOS/Presentation/CourseDetail/VC/CourseDetailVC.swift +++ b/Runnect-iOS/Runnect-iOS/Presentation/CourseDetail/VC/CourseDetailVC.swift @@ -556,7 +556,9 @@ extension CourseDetailVC { deleteAlertVC.rightButtonTapAction = { deleteAlertVC.dismiss(animated: false) self.deleteCourse() - self.navigationController?.popViewController(animated: true) + DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) { + self.navigationController?.popViewController(animated: true) + } } self.present(deleteAlertVC, animated: false) case "신고하기": From 206b2c7a8cea4fb108f3471f32ddc355f8149e27 Mon Sep 17 00:00:00 2001 From: LeeMyeongJin Date: Sat, 14 Oct 2023 17:49:32 +0900 Subject: [PATCH 2/3] =?UTF-8?q?[Fix]=20#196=20-=20=EB=B7=B0=20=EC=83=88?= =?UTF-8?q?=EB=A1=9C=EA=B3=A0=EC=B9=A8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Presentation/MyPage/VC/InfoVC/UploadedCourseInfoVC.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Runnect-iOS/Runnect-iOS/Presentation/MyPage/VC/InfoVC/UploadedCourseInfoVC.swift b/Runnect-iOS/Runnect-iOS/Presentation/MyPage/VC/InfoVC/UploadedCourseInfoVC.swift index 405115cc..7e43cf96 100644 --- a/Runnect-iOS/Runnect-iOS/Presentation/MyPage/VC/InfoVC/UploadedCourseInfoVC.swift +++ b/Runnect-iOS/Runnect-iOS/Presentation/MyPage/VC/InfoVC/UploadedCourseInfoVC.swift @@ -100,6 +100,7 @@ final class UploadedCourseInfoVC: UIViewController { override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) self.hideTabBar(wantsToHide: true) + getUploadedCourseInfo() } } From e0f2061f01515ba86fdf9a6083ddaba4184ab221 Mon Sep 17 00:00:00 2001 From: LeeMyeongJin Date: Wed, 18 Oct 2023 18:19:20 +0900 Subject: [PATCH 3/3] =?UTF-8?q?[Feat]=20#196=20-=20=EC=BD=94=EB=93=9C=20?= =?UTF-8?q?=EB=A6=AC=EB=B7=B0=201=EC=B0=A8=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Presentation/CourseDetail/VC/CourseDetailVC.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Runnect-iOS/Runnect-iOS/Presentation/CourseDetail/VC/CourseDetailVC.swift b/Runnect-iOS/Runnect-iOS/Presentation/CourseDetail/VC/CourseDetailVC.swift index 0c0667f6..8da6bae5 100644 --- a/Runnect-iOS/Runnect-iOS/Presentation/CourseDetail/VC/CourseDetailVC.swift +++ b/Runnect-iOS/Runnect-iOS/Presentation/CourseDetail/VC/CourseDetailVC.swift @@ -517,6 +517,9 @@ extension CourseDetailVC { let status = result.statusCode if 200..<300 ~= status { print("삭제 성공") + DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) { + self.navigationController?.popViewController(animated: true) + } } if status >= 400 { print("400 error") @@ -556,9 +559,6 @@ extension CourseDetailVC { deleteAlertVC.rightButtonTapAction = { deleteAlertVC.dismiss(animated: false) self.deleteCourse() - DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) { - self.navigationController?.popViewController(animated: true) - } } self.present(deleteAlertVC, animated: false) case "신고하기":