I ALWAYS have this question and always wish there was a way (like there is in PHP's variable variables), but I'm pretty sure theres not... the only way to do it would to make an array OF arrays like so:
Assuming you mean you want to assign a value to an element of one of the arrays:
NSArray *arrays[15];
for (int i = 0; i < 15; i++){
arrays[i] = [NSArray arrayWithObject:[NSNumber numberWithInt:i]];
}
NSLog(@"%@",[arrays[0] objectAtIndex:0]);
of course the NSNumber isn't what you want, I was just using it as an example...
Hope this was what you wanted.
P.S. you could also use NSMutableArray's arrayWithCapacity instead of using a C style array, but whatever you want.
NSMutableArray *arrays = [NSMutableArray arrayWithCapacity:14];
for (int i = 0; i < 15; i++){
[arrays insertObject:[NSArray arrayWithObject:[NSNumber numberWithInt:i]] atIndex:i];
}
NSLog(@"%@",[[arrays objectAtIndex:0] objectAtIndex:0]);