title: How to listen to user touches for UICollectionViewCell in iOS?
body: <p>I have implemented a <code>UICollectionView</code> that holds list of UIImageView objects.</p>
  
  <p>I want the user to be taken to YouTube with specific URL when he touched an image.</p>
  
  <p>But I don't know how to add touch listener for each <strong>UICollectionViewCell</strong>:</p>
  
  <pre><code>    func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -&gt; UICollectionViewCell {
  
      var cell: PhotoCell = collectionView.dequeueReusableCellWithReuseIdentifier("PhotoCell", forIndexPath: indexPath) as PhotoCell
      cell.loadImage(thumbnailFileURLs[indexPath.row], originalImagePath: originalFileURLs[indexPath.row])
  
      return cell
      }
  </code></pre>
  
  <p>My PhotoCell class has a member variable that holds the URL to youtube.</p>
  
  <p>For each PhotoCell object, when pressed, I want my app to send the user to youtube.com website or APP (if installed)</p>