diff --git a/Runnect-iOS/Runnect-iOS/Presentation/CourseDetail/VC/CourseDetailVC.swift b/Runnect-iOS/Runnect-iOS/Presentation/CourseDetail/VC/CourseDetailVC.swift index ab2aa6c6..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,7 +559,6 @@ extension CourseDetailVC { deleteAlertVC.rightButtonTapAction = { deleteAlertVC.dismiss(animated: false) self.deleteCourse() - self.navigationController?.popViewController(animated: true) } self.present(deleteAlertVC, animated: false) case "신고하기": 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() } }