NSInvocation and memory issues [duplicate]
问题 This question already has answers here : NSInvocation getReturnValue: called inside forwardInvocation: makes the returned object call dealloc: (3 answers) Closed 6 years ago . So I come from the Java world where we are blissfully ignorant of memory management issues. For the most part, ARC has saved my butt, but here is something that has got me stumped. Basically I am using NSInvocations for some stuff, and I ran into some nasty memory issues before I made the following code modifications.