NSArray *array = [[NSArray alloc] initWithObjects:@"ΕΛΤΑ", @"ΕΛΤΑ COURIER", @"ACS", @"ACS ΕΞΩΤΕΡΙΚΟ", @"DHL", @"INTERATTICA", @"SPEEDEX", @"UPS", @"ΓΕΝΙΚΗ ΤΑΧΥΔΡΟΜΙΚΗ", @"ΜΕΤΑΦΟΡΙΚΕΣ ΕΞΩΤΕΡΙΚΟΥ", nil];
This works because in the end it has zero.
But I add such objects: addObject:name , etc .... Therefore, in the end I have to add nil, I do this addObhect: zero, but when I run the application, it still crashes with cellForRowAtIndexPath:
How can i do this?
Ok i don't need to add nil
What is the reason that my application will work?
null objective-c iphone nsmutablearray
stefanosn Jan 13 '10 at 15:39 2010-01-13 15:39
source share