I'm getting the following warning by the ARC compiler: ARC編譯器收到如下警告: this
"performSelector may cause a leak because its selector is unknown".
Here's what I'm doing: 這是我在作什麼: spa
[_controller performSelector:NSSelectorFromString(@"someMethod")];
Why do I get this warning? 爲何會收到此警告? I understand the compiler can't check if the selector exists or not, but why would that cause a leak? 我知道編譯器沒法檢查選擇器是否存在,可是爲何會致使泄漏? And how can I change my code so that I don't get this warning anymore? 以及如何更改個人代碼,以便再也不收到此警告? .net