How to show check tick mark in Collection view (images)
<p>In Table view we can put checkmark easily on cells.  </p>

<p>But in Collection View how can we put check mark, when we select a cell (image)?</p>

<p>I just took a image view inside the cell and image view and put a tick mark image. My code is below.  </p>

<p>But it's not working. </p>

<pre><code>func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath)
{

   //  handle tap events
    let cell = collectionView.dequeueReusableCellWithReuseIdentifier("cell", forIndexPath: indexPath) as! customCollectionViewCell


    if(cell.checkMarkImage.hidden == true)
    {
        print("Hidden")
       cell.checkMarkImage.hidden = false

    }
    else
    {
         cell.checkMarkImage.hidden = true
        print("No Hidden")
    }
}
</code></pre>