title: How to change image in a collection view cell
body: <p>I have a CollectionView cell with imageview.The thing is that I want to change the image of the cell when the cell is selected.Can any one help me?</p>
  
  <p>I tried the following.But it is not working.</p>
  
  <pre><code>- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
  {
  
  
  static NSString *cellIdentifier=@"myCell";
  
  GallaryCell *cell=[collectionView dequeueReusableCellWithReuseIdentifier:cellIdentifier forIndexPath:indexPath];
  cell.MarkImg.image=[UIImage imageNamed:@"mark.jpg"];
  }
  </code></pre>