I'am trying to make a simple application, for making a better understanding of Obj-C.

What I trying to accomplish is the functionality to change the picture of my UIImageView when touches ended. This is a simple task, with a static functionality `circle.image = [UIImage imageNamed:@"newImage.png"];` But I need it to be dynamic, so i don't need to type this line for every image. 

I have been using `[touch view]` *(see sample code below)* in some cases, but this is not possible for changing image: *Property 'image' not found on object of type UIImage*

I hope someone can give me alternative and I will really appreciate some sample code, thanks in advance :) 

ViewController.h:

```
@interface ViewController : UIViewController{

    IBOutlet UIImageView *circle;
    IBOutlet UIImageView *triangle;
    IBOutlet UIImageView *star;
    IBOutlet UIImageView *background;

}

```

ViewController.m

```
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{

    UITouch *touch = [[event allTouches] anyObject];

    if([touch view] != background){

        [touch view].image = [UIImage imageNamed:@"newImage.png"];

    }

}

```