1
votes

I'm getting the following warning by the ARC compiler:

"performSelector may cause a leak because its selector is unknown".

Here's what I'm doing:

[_controller performSelector:NSSelectorFromString(@"someMethod")];

But under Apple Demo, they don't have this Warning for the same code. Anyone know why?

1

1 Answers

1
votes

That sample is not an ARC project. The warning you cite is the default with ARC projects.