You can find information on the docs on for loop pretty easily if you search around in "help" in xcode. I don't have my mac in front of me so I'll do the best I can from memory.
Basically it goes a little something like this:
Code:
int i;
NSString *loadString;
for(i = 0; i < 10; i++) {
loadString = [NSString stringWithFormat:@"hatAnimation%d", i];
[myImageArray addObject:[UIImage imageWithContentsOfFile:[NSBundle mainBundle] pathForResource:loadString ofType:@"png"]];
}
Now what this does will load in the images called hatAnimation1.png, hatAnimation2.png etc up to hatAnimation9.png.
Again, I am writing from memory here so my syntax might be slightly off but this is the jist; of course you must have your NSMutable Array allocated and released as usual in addition to the things above. Hope this helps!