因此,我一直在试图把电池从可转让的电文上装上,并将这些电池装入一个可塑的Array号,随后再照搬。 我有一套名为“聚众”的方法,在我把6个以上的囚室投入使用之前,这些方法可进行罚款。 出于某种原因,被送回的物体为零。 我的法典如下,《全球清单》是《可转让意见》,我在第1节中将《可转让意见》分类。
- (void) populateArrayWithCells
{
for (int i = 0; i < [StocksAndAccounts numberOfRowsInSection:1]; i++) {
if ([StocksAndAccounts cellForRowAtIndexPath:[NSIndexPath indexPathForRow:i inSection:1]] == nil) {
NSLog(@"object at index %i is nil", i);
}
[stocksCells addObject:[StocksAndAccounts cellForRowAtIndexPath:[NSIndexPath indexPathForRow:i inSection:1]]];
}
}
This function, when called through an IBAction, returns the cell successfuly until the index is 6, in which case it is nil and crashes because it s trying to add an object that is nil. Any help with this problem would be greatly appreciated.