title: How to add event to UICollectionView cells?
body: <p>I want to handle tapping UICollectionView cells. Tried to achieve this by using the following code:</p>
  
  <pre><code>-(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
  {    
      static NSString *cellIdentifier = @"cvCell";    
      UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:cellIdentifier forIndexPath:indexPath];  
  
      // Some code to initialize the cell
  
      [cell addTarget:self action:@selector(showUserPopover:) forControlEvents:UIControlEventTouchUpInside];
      return cell;
  }
  
  - (void)showUserPopover:(id)sender
  {
       //...
  }
  </code></pre>
  
  <p>But the execution breaks at the line <code>[cell addTarget:...]</code> with the following error:</p>
  
  <blockquote>
    <p>-[UICollectionViewCell addTarget:action:forControlEvents:]: unrecognized selector sent to instance 0x9c75e40</p>
  </blockquote>