C array of ObjC objects as a Function argument

59 Views Asked by At

Whenever I am passing an argument of Objective C type A to my function then everything is alright:

- (void) f:(id<A>)argument

However, when it's an array of the same object type, Xcode requires that I add a strong attribute as:

- (void) f:(__strong id<A> [])argument

Any idea why is that?

0

There are 0 best solutions below