I am new to objective C
I want to add in a NSMutableArray on each line 2 values ( i i , i j, i n)
I have this code:
UPDATE:
I've decided to create 2 NSMutableArrays:
NSMutableArray *sections = [[NSMutableArray alloc] init];
NSMutableArray *second_array = [[NSMutableArray alloc] init];
@try {
for (Table *table in Class_1])
{
NSMutableArray *second = [[NSMutableArray alloc]init];
for (id item in table.NSSET_DATAS)
{
[second addObject id];
}
[sections addObject:table.firstVal];
[second_array addObject:second];
// how to add the NSArray second?
}
}
@catch (NSException *exception) {
NSLog(@"ERROR IN SETLISTCONTENT");
}
How to retrieve from position 5 both values from position 1 and the array? I have error when doing this:
NSString value= [self.second_array objectAtIndex:0]objectAtIndex:0];