for (XMLProductView *pV in entries) { NSString *test = pV.appName; [allTableData addObject:test]; NSLog(@"Entries: %@", allTableData); } In my NSString *test I get all results. Why does the NSMutableArray 'allTableData' show up Null?
for (XMLProductView *pV in entries) { NSString *test = pV.appName; [allTableData addObject:test]; NSLog(@"Entries: %@", allTableData); } In my NSString *test I get all results. Why does the NSMutableArray 'allTableData' show up Null?
It is hard to say because you added just a few information, but probably you are not allocating it correctly.
Try to add it before your for:
allTableData = [[NSMutableArray alloc] init]; for (XMLProductView *pV in entries) { NSString *test = pV.appName; [allTableData addObject:test]; } NSLog(@"Entries: %@", allTableData); --
Edit
I edited the code to try to make it clear.
SIGABRT here: pV = [allTableData objectAtIndex:indexPath.row];indexPath.row is greater than the -length of the array.