Xcode4 creating Image view only with code
===

Hello stackoverflow Community I am new to stackoverflow and rather new in Xcode4 programming and need some help.

I want to make some image views for Units in a game and add them with code because to put them in the view and make conections is much expenditure 

I already have found code to put the image views in:

    UIImageView *image0 =[[UIImageView alloc] initWithFrame:CGRecMake(x,y,w,h)];
    image0.image=[UIImage imageNamed:@"image.png"];
    [self.view addSubview:image0];
but my question is if I can make an array that i don't have to write this for every image view where i put the same image in it

