Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
ljh committed Jul 6, 2016
2 parents 68da540 + 1736478 commit 152f9a0
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions Classes/Private/UITableView+IMYAOPTableView.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
+ (SEL)aop_updateRowDataSEL;
+ (SEL)aop_rebuildGeometrySEL;
+ (SEL)aop_updateContentSizeSEL;
+ (SEL)aop_updateAnimationDidStopSEL;

+ (Class)imy_aopClass;
@end
Expand Down
19 changes: 19 additions & 0 deletions Classes/Private/UITableView+IMYAOPTableView.m
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,15 @@ + (SEL)aop_updateContentSizeSEL
});
return sel;
}
+ (SEL)aop_updateAnimationDidStopSEL
{
static SEL sel;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
sel = NSSelectorFromString([NSString stringWithFormat:@"%@%@", @"_updateAnimationDidStop:", @"finished:context:"]);
});
return sel;
}
- (IMYAOPTableViewUtils*)aop_uiCallingUtils
{
IMYAOPTableViewUtils* aop_utils = self.aop_utils;
Expand Down Expand Up @@ -277,6 +286,16 @@ - (void)aop__updateContentSize
((void (*)(void*, SEL))(void*)objc_msgSendSuper)(&objcSuper, [UITableView aop_updateContentSizeSEL]);
aop_utils.isUICalling -= 1;
}
- (void)aop__updateAnimationDidStop:(id)arg1 finished:(id)arg2 context:(id)arg3
{
IMYAOPTableViewUtils* aop_utils = [self aop_uiCallingUtils];
aop_utils.isUICalling += 1;
struct objc_super objcSuper;
objcSuper.receiver = self;
objcSuper.super_class = self.aop_utils.tableViewClass;
((void (*)(void*, SEL, id, id, id))(void*)objc_msgSendSuper)(&objcSuper, [UITableView aop_updateAnimationDidStopSEL], arg1, arg2, arg3);
aop_utils.isUICalling -= 1;
}
- (void)aop_layoutSubviews
{
IMYAOPTableViewUtils* aop_utils = [self aop_uiCallingUtils];
Expand Down
1 change: 1 addition & 0 deletions Classes/TableUtils/IMYAOPTableViewUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ - (void)setupAopClass:(Class)aopClass
[self addOverriteMethod:[UITableView aop_updateRowDataSEL] aopClass:aopClass];
[self addOverriteMethod:[UITableView aop_updateContentSizeSEL] aopClass:aopClass];
[self addOverriteMethod:[UITableView aop_rebuildGeometrySEL] aopClass:aopClass];
[self addOverriteMethod:[UITableView aop_updateAnimationDidStopSEL] aopClass:aopClass];
[self addOverriteMethod:@selector(beginUpdates) aopClass:aopClass];
[self addOverriteMethod:@selector(endUpdates) aopClass:aopClass];
[self addOverriteMethod:@selector(reloadSectionIndexTitles) aopClass:aopClass];
Expand Down

0 comments on commit 152f9a0

Please sign in to comment.