Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize: 当collectionView的delegate未实现代理方法'collectionView:didSelectIt… #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wustzhy
Copy link

@wustzhy wustzhy commented Apr 6, 2022

问题

当collectionView的delegate未实现代理方法'collectionView:didSelectItemAtIndexPath:'时,无法hook

本次提交/优化

optimize: 当collectionView的delegate未实现代理方法'collectionView:didSelectItemAtIndexPath:'时,仍然可以hook添加额外逻辑

用例,如下

测试:注释掉 使用者HZCategoryView.m中 line:38~42的 '- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath'方法实现。
优化前:hook无效
优化后:hook有效

…mAtIndexPath:'时,仍然可以hook添加额外逻辑
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant