Skip to content

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

Open
wustzhy wants to merge 1 commit into
ZenonHuang:masterfrom
wustzhy:master
Open

optimize: 当collectionView的delegate未实现代理方法'collectionView:didSelectIt…#1
wustzhy wants to merge 1 commit into
ZenonHuang:masterfrom
wustzhy:master

Conversation

@wustzhy

@wustzhy wustzhy commented Apr 6, 2022

Copy link
Copy Markdown

问题

当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.

1 participant