From 7f0ffde13a70d870d9f967c250704c084cb7b39a Mon Sep 17 00:00:00 2001 From: xxg90s Date: Wed, 18 May 2022 17:54:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9C=A8iOS12?= =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E4=B8=8AActionSheet=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E8=A7=A6=E5=8F=91=E5=90=8E=E5=BC=B9=E5=87=BA?= =?UTF-8?q?=E6=A8=A1=E6=80=81=E8=A7=86=E5=9B=BE=E6=97=A0=E5=8F=8D=E5=BA=94?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SPAlertController/SPAlertController.m | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Example/SPAlertController/SPAlertController/SPAlertController.m b/Example/SPAlertController/SPAlertController/SPAlertController.m index 1ede07b..630787b 100755 --- a/Example/SPAlertController/SPAlertController/SPAlertController.m +++ b/Example/SPAlertController/SPAlertController/SPAlertController.m @@ -2068,11 +2068,12 @@ - (SPInterfaceActionSequenceView *)actionSequenceView { actionSequenceView.translatesAutoresizingMaskIntoConstraints = NO; __weak typeof(self) weakSelf = self; actionSequenceView.buttonClickedInActionViewBlock = ^(NSInteger index) { - [weakSelf dismissViewControllerAnimated:YES completion:nil]; - SPAlertAction *action = weakSelf.actions[index]; - if (action.handler) { - action.handler(action); - } + [weakSelf dismissViewControllerAnimated:YES completion:^{ + SPAlertAction *action = weakSelf.actions[index]; + if (action.handler) { + action.handler(action); + } + }]; }; if (self.actions.count && !self.customActionSequenceView) { [self.alertView addSubview:actionSequenceView];