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

12.1.4,遇到NSNull还是会crash #20

Open
YeaLink89 opened this issue Apr 9, 2019 · 4 comments
Open

12.1.4,遇到NSNull还是会crash #20

YeaLink89 opened this issue Apr 9, 2019 · 4 comments

Comments

@YeaLink89
Copy link

No description provided.

@isandboy
Copy link

isandboy commented May 6, 2019

category里面的方法执行了吗,可以用runtime进行method swizzling来实现。

@huolong1237
Copy link

iOS13还是会崩溃,category方法没有执行

@kidzss
Copy link

kidzss commented Dec 8, 2019

iOS13还是会崩溃,category方法没有执行
在确定导入这个分类的前提下, 如果还是崩溃那肯定是你的方法不是代码中默认的容器方法。
你可以尝试:在methodSignatureForSelector方法中,返回return signature?:[NSMethodSignature signatureWithObjCTypes:"v@:"];

@tomsemi
Copy link

tomsemi commented Dec 27, 2019

iOS13还是会崩溃,category方法没有执行

在确定导入这个分类的前提下, 如果还是崩溃那肯定是你的方法不是代码中默认的容器方法。
你可以尝试:在methodSignatureForSelector方法中,返回return signature?:[NSMethodSignature signatureWithObjCTypes:"v@:"];

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

No branches or pull requests

5 participants