From 75b09e2c97c04105b91102f79cd63d6df5f0f85d Mon Sep 17 00:00:00 2001 From: "lijianghuai@xiaoyouzi.com" Date: Tue, 29 Jan 2019 18:36:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20iOS9=20=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E4=B8=8D=E5=87=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Private/TableView/UITableView+IMYAOPTableView.m | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Classes/Private/TableView/UITableView+IMYAOPTableView.m b/Classes/Private/TableView/UITableView+IMYAOPTableView.m index dc7b452..a2d89f9 100644 --- a/Classes/Private/TableView/UITableView+IMYAOPTableView.m +++ b/Classes/Private/TableView/UITableView+IMYAOPTableView.m @@ -421,7 +421,12 @@ - (NSIndexPath *)aop_indexPathForRowAtPoint:(CGPoint)point { } - (NSIndexPath *)aop_indexPathForCell:(UITableViewCell *)cell { + BOOL isGlobalUICalling = IMYAOPGlobalUICalling; AopDefineVars; + if (isGlobalUICalling) { + aop_utils = nil; + IMYAOPGlobalUICalling = YES; + } aop_utils.isUICalling += 1; NSIndexPath *indexPath = AopCallSuperResult_1(@selector(indexPathForCell:), cell); aop_utils.isUICalling -= 1; @@ -617,7 +622,12 @@ - (void)aop_moveRowAtIndexPath:(NSIndexPath *)indexPath toIndexPath:(NSIndexPath // Selection - (NSIndexPath *)aop_indexPathForSelectedRow { + BOOL isGlobalUICalling = IMYAOPGlobalUICalling; AopDefineVars; + if (isGlobalUICalling) { + aop_utils = nil; + IMYAOPGlobalUICalling = YES; + } aop_utils.isUICalling += 1; NSIndexPath *indexPath = AopCallSuperResult(@selector(indexPathForSelectedRow)); aop_utils.isUICalling -= 1;