how to change the label colour in collection view cell by click
<p>I have one collection view with some cells. Inside my cells I have one label to show a list of country names. And on every click of each cell labels I will display some data in table view below my collection view.</p>

<p>When I press any cell label I need to turn that label's text red. And other label names should be black.</p>

<p>How to do that? I have tried the code below, but when I select any label name in that cell all the cell labels are turning red.</p>

<p>How do I fix this?</p>

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


        if let cell = collectionView1.cellForItemAtIndexPath(indexPath) {

            var label = cell.viewWithTag(100) as? UILabel


            label!.textColor = UIColor.redColor()

        }
    }
</code></pre>