Aspects icon indicating copy to clipboard operation
Aspects copied to clipboard

A method can only be hooked once per class hierarchy problem

Open littlewu0 opened this issue 8 years ago • 4 comments

Hello,

I met a problem when I use Aspect. If I hook viewwillappear method in one sub viewcontroller, when I hook viewwillappear in another sub viewcontroller, it hook fail.

I read the source code of Aspect, I found that it has this method aspect_isSelectorAllowedAndTrack.

If I remove this aspect_isSelectorAllowedAndTrack, it can run OK.

So I really want to known the purpose for this method.

Thank you !

littlewu0 avatar Mar 23 '17 02:03 littlewu0

me too,I encountered the same problem as you

liyongjie1002 avatar Jun 25 '18 09:06 liyongjie1002

me too,I encountered the same problem as you.

GitHubXuLiying avatar Sep 11 '18 05:09 GitHubXuLiying

me too,I encountered the same problem as you

请问你后来是如何解决的?

juningwei avatar Nov 23 '18 08:11 juningwei

me too

chilimyan avatar Nov 22 '19 11:11 chilimyan