I'm creating an array from two mutable arrays. Array 1 has 3 objects and so does array 2 I'm receiving a crash that says "unrecognized selector sent to instance'" Why doesn't this work?
The two arrays are initialised:
self.array1 =[[NSMutableArray alloc]initWithObjects:@"word", @"word2", nil];
self.array2 =[[NSMutableArray alloc]initWithObjects:@"this goes with word1", @"this goes with the second word", nil];
NSMutableArray *objects;
for (int i=0 ; i<[array1 count]; i++){
for (int j=0 ; j<[array2 count]; j++){
objects = [[NSMutableArray alloc]init];
objects=[array1 objectAtIndex:i][[array2 objectAtIndex:j]];
}
}