Skip to content

Commit

Permalink
修复 iOS9 跳转不准问题
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jan 29, 2019
1 parent 313f69a commit 75b09e2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Classes/Private/TableView/UITableView+IMYAOPTableView.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 75b09e2

Please sign in to comment.