ARC - why do object pointers require explicit ownership type in function definitions?
问题 void testFunction (id testArgument[]) { return; } I'm getting the error "Must explicitly describe intended ownership of an object array parameter". Why does ARC need me to specify the ownership type of the objects in the testArgument array? 回答1: To expand on Jeremy's answer, ARC had two primary goals when designed: make memory management as fully automatic as possible in pure Objective-C code while also preserving or maximizing efficiency (in fact, ARC can be more efficient than manual retain