Oc的异常触发
作者:互联网
// Replaced by CF (throws an NSException) + (void)doesNotRecognizeSelector:(SEL)sel { _objc_fatal("+[%s %s]: unrecognized selector sent to instance %p", class_getName(self), sel_getName(sel), self); } // Replaced by CF (throws an NSException) - (void)doesNotRecognizeSelector:(SEL)sel { _objc_fatal("-[%s %s]: unrecognized selector sent to instance %p", object_getClassName(self), sel_getName(sel), self); }
标签:触发,instance,self,Oc,doesNotRecognizeSelector,objc,sel,异常,getName 来源: https://www.cnblogs.com/feng9exe/p/15477940.html