オブジェクトを追加しようとしていますNSMutableArray "allItems1"
for (PMGWine *w in [[PMGWineStore sharedStore]allItems]) {
[allItems1 addObject:w];
NSLog(@"%@", w);
}
NSLog(@"%d", [allItems1 count]);
[[PMGWineStore sharedStore]allItems]
NSLog
最初のステートメントで完全に出力される 15 個のオブジェクトで構成されます。しかし[allItems1 count]
、0が表示されます。何が間違っていますか?