title: Replacing image in UIScrollView on selected item
body: <p>I created  simple <code>UIScrollView</code> that have images. Each time an image pressed i want to change that image, how can I do it?</p>
  
  <p>I creating this <code>UIScrollView</code> and initializing it with <code>NSMutableArray</code> with images.</p>
  
  <pre><code>      UIScrollView *myScroll = [[UIScrollView alloc] initWithFrame: CGRectMake (0,100,200,30)];
          NSMutableArray = *images = [NSMutableArray alloc] initWithObjects: img1,img2,img3,nil];
  
  for (int i=0; i&lt;3; i++)
  {
          UIImageView *imageV = [UIImageView alloc];
          [imageV setImage:[images objectAtIndex:i]];
          [myScroll addSubview:imageV];
          [imageV release];
  }
  
  
      UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc] initWithTarget: self action:@selector (changeImg:)];
      [myScroll addGestureRecognizer: singleTap];
  </code></pre>
  
  <p>and the toucing I'm cathing with the touched place on the scroll:</p>
  
  <pre><code>- (void) singleTapGestureCaptured:(UITapGesturerecongnizer *) gesture
  {
      CGPoint touch = [gesture locationInView:myScroll];
  
  }
  </code></pre>
  
  <p>By X,Y of touched item i know what image was selected</p>
  
  <p>Here I need to change for example the first image of myScroll...How can i do it?</p>