繰り返されたオブジェクトをbyrefparamを持つメソッドに渡すforループがあり、次のエラーが発生します。
Implicit conversion of an Objective-C pointer to 'FOO *__autoreleasing *' is disallowed with ARC
および警告:
Incompatible pointer types sending 'Foo *const __strong' to parameter of type 'Foo *__autoreleasing *'
ループ:
for (Foo *obj in objArray) {
FooTableCell *newCell = [self createFooCellWithItem:obj];
}
メソッドシグネチャ:
-(FooTableCell *)createFooCellWithItem:(Foo **)newObj;
私はこのSOq&aでの提案に従いましたが無駄になりました。
編集
objの前に&を付けると、次のエラーが発生します。
Sending 'Foo *const __strong *' to parameter of type 'Foo *__autoreleasing *' changes retain/release properties of pointer