From af7600ab7be5b155da6cb7235b415117b2e06f55 Mon Sep 17 00:00:00 2001 From: white8818 Date: Wed, 24 Apr 2024 18:03:50 +0800 Subject: [PATCH] Update TUICameraViewController.m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复模态弹出拍照页面,点击返回按钮无法dismiss的问题 --- iOS/TUIKit/TUIChat/CommonUI/Camera/TUICameraViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iOS/TUIKit/TUIChat/CommonUI/Camera/TUICameraViewController.m b/iOS/TUIKit/TUIChat/CommonUI/Camera/TUICameraViewController.m index c1976058af..1e439c3cd9 100644 --- a/iOS/TUIKit/TUIChat/CommonUI/Camera/TUICameraViewController.m +++ b/iOS/TUIKit/TUIChat/CommonUI/Camera/TUICameraViewController.m @@ -401,7 +401,7 @@ - (void)popViewControllerAnimated:(BOOL)animated { if (lastVC) { [self.navigationController popToViewController:lastVC animated:animated]; } else { - [self.navigationController popViewControllerAnimated:animated]; + [self dismissViewControllerAnimated:YES completion:nil]; } }