chenfanfang / AvoidCrash

This framework can effective avoid crash by potential error code. For example : If you insert a nil into a mutable array, this framework can avoid crash and note you that where cause crash.
MIT License
1.64k stars 383 forks source link

如何对UIViewController拦截unrecognized selector sent to instance #44

Closed YYCoder1963 closed 6 years ago

YYCoder1963 commented 6 years ago

由于不可将UI前缀的字符串加入classStrings数组中,对于UIViewController,这个库有拦截unrecognized selector sent to instance崩溃的方法吗

chenfanfang commented 6 years ago

你好,你可以通过项目规范的命名前缀来处理,或者利用基类的方式来处理