title: change cell imageView in uicollectionview didSelectItemAtIndexPath method
body: <p>I built a CollectionView controller with fixed imageView in 4 cells.
  I'd like the imageView to change on cell selection.
  Could you help me with this one?</p>
  
  <p>Thank you</p>
  
  <p>here's my code</p>
  
  <p>CollectionView controller .m</p>
  
  <p>....</p>
  
  <pre><code>-(NSInteger)numberOfSectionsInCollectionView:
  (UICollectionView *)collectionView
  {
      return 1;
  }
  
  -(NSInteger)collectionView:(UICollectionView *)collectionView
      numberOfItemsInSection:(NSInteger)section
  {
      return 4;
  }
  
  -(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView
                   cellForItemAtIndexPath:(NSIndexPath *)indexPath
  {
      Cell *myCell = [collectionView dequeueReusableCellWithReuseIdentifier:@"Cell"     forIndexPath:indexPath];
  
      UIImage *image;
  
      int row = [indexPath row];
  
      image = [UIImage imageNamed:@"ICUbedGREEN.png"];
  
      myCell.imageView.image = image;
  
      return myCell;
  }
  </code></pre>
  
  <p>I'd like the image to change on press but I cannot figure it out...</p>
  
  <pre><code>- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:    (NSIndexPath *)indexPath
  {
      UIImage *image = [UIImage imageNamed:[NSString stringWithFormat:@"ICUbedRED.png"]];
  
      cell.imageView.image = .....
  
       NSLog(@"elementselected");
  </code></pre>
  
  <p>}</p>