TABAnimated icon indicating copy to clipboard operation
TABAnimated copied to clipboard

对collectionView的代理做方法交换后,hook的方法执行了两遍

Open wv-y opened this issue 2 years ago • 2 comments

xcode13 iOS14.6及iOS15.4.1(手上现有的设备) demo地址

以willDisplayCell举例, 因为业务需要hook了一下,( willDisplayCell-myhook) 然后发现willDisplayCell-myhook会执行两遍,但是原方法(willDisplayCell)是只执行一次; TABAnimated中hook后执行原方法是用的selector; 不知道是不是自己写法和TABAnimated中hook的写法哪里有冲突,希望作者可以看下

image image

wv-y avatar Aug 10 '22 03:08 wv-y

demo无法体现

tigerAndBull avatar Aug 18 '22 11:08 tigerAndBull

demo无法体现 可以看下log输出,每出现一个cell,myhook_collectionView:willDisplayCell:方法执行了两次; 在这里的截图有所体现 https://github.com/tigerAndBull/TABAnimated/issues/204#issue-1334000130

wv-y avatar Aug 19 '22 11:08 wv-y