Skip to content

Commit

Permalink
fix: correct didScrollToTop selector name
Browse files Browse the repository at this point in the history
  • Loading branch information
tigerAndBull committed Jan 9, 2022
1 parent 0c54a44 commit 03d8125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TABAnimatedDemo/TABAnimated/Control/TABFormAnimated.m
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ - (BOOL)tab_scrollViewShouldScrollToTop:(UIScrollView *)scrollView {
- (void)tab_scrollViewDidScrollToTop:(UIScrollView *)scrollView {
TABFormAnimated *tabAnimated = (TABFormAnimated *)(scrollView.tabAnimated);
id oldDelegate = tabAnimated.oldDelegate;
SEL sel = @selector(scrollViewShouldScrollToTop:);
SEL sel = @selector(scrollViewDidScrollToTop:);
((void (*)(id, SEL, UIScrollView *))objc_msgSend)((id)oldDelegate, sel, scrollView);
}

Expand Down

0 comments on commit 03d8125

Please sign in to comment.