iOS处理unrecognized selector
2019-02-24 本文已影响0人
来根黄鹤楼啊
处理unrecognized selector 这个方法 利用runtime 机制当中的消息转发机制
拯救报错三步
1Method resolution
objc+resolveInstanceMethod:+resolveClassMethod:
Message Forwarding
2Fast forwarding
-forwardingTargetForSelector:Runtime nilselfNormal FowardingFastNSInvocation
3Normal forwarding
RuntimenilRuntime-doesNotRecognizeSelector:RuntimeNSInvocation-forwardInvocation: