NSMutableArray を使用して、テーブルビューにセルを入力しています。問題は、オブジェクトを配列に追加しようとすると、すべてのオブジェクトが追加されたオブジェクトに置き換えられるため、配列には常に 1 つのオブジェクトしかないことです。このため、私のテーブルビューには、以下のメソッドが呼び出されるたびに上書きされるセルが常に 1 つあります。何か不足していますか?
_selectedThingArray = [[NSMutableArray alloc] init];
_currentThing = newThing;
//Note: newThing is the object being passed when this method is called.
//It is the new data that will should passed into the cell.
[_selectedThingArray addObject:_currentThing];
NSLog(@"%@", newThing);
NSLog(@"array: %@", _selectedThingArray);
[self.tableView reloadData];