title: Swift 3.0 : Custom CollectionView header button click
body: <p>I have made a custom collectionview cell. I have placed it as the header of the collection view through this code:</p>
  
  <pre><code>func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -&gt; UICollectionReusableView {
      if kind == UICollectionElementKindSectionHeader {
  
          let cell = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withReuseIdentifier: "HeaderCell", for: indexPath) as! GridHeaderCollectionViewCell
          cell.pagePluginBtn.tag = 0
          cell.tag = 0
          cell.nameLabel.text = pageRecord["GroupName"] as? String
          cell.pagePluginBtn.addTarget(self, action: #selector(TappedOnPagePluginBtn(sender:)), for: .touchUpInside)
          return cell
      }
      abort()
  }
  
  func TappedOnPagePluginBtn(sender:UIButton){
  
      print("in plugin")
  }
  </code></pre>
  
  <p>The cell is defined as:</p>
  
  <pre><code>class GridHeaderCollectionViewCell: UICollectionViewCell {
  
  @IBOutlet weak var nameLabel: UILabel!
  @IBOutlet weak var pagePluginBtn: UIButton!
  }
  </code></pre>
  
  <p>The <code>TappedOnPagePluginBtn()</code> is not getting called at all. Is there any way to make buttons clickable in the headerView of collectionView?</p>