iOSInterviewQuestions
iOSInterviewQuestions copied to clipboard
forwardingTargetForSelector返回self不会死循环吧。
如题,亲测
那么到底会不会死循环
苹果开发者文档:https://developer.apple.com/documentation/objectivec/nsobject/1418855-forwardingtargetforselector
"Obviously if you return self from this method, the code would just fall into an infinite loop."
显然,如果你在此方法中返回 self,代码将会陷入一个无限循环。