title: Handle Touch in UiCollectionView?
body: <p>I have this big <code>UICollectionView</code> occupying major part of screen and there is a <code>UIButton</code> that shows a menu. I want to hide the menu when the user taps on any side of the screen which becomes unfortunately any part of <code>UICollectionView</code> for me. Tried on other view the below code, it works well...but not for <code>UICollectionView</code>. The function does not gets called.</p>
  
  <pre><code>override func touchesBegan(touches: Set&lt;NSObject&gt;, withEvent event: UIEvent) {            
     hidemenu()
     self.view.endEditing(true)            
  }
  </code></pre>
  
  <p>What is the problem? Thanks for your time.</p>
  
  <p><strong>OR</strong>
  How to trigger <code>touchesBegan</code> in the <code>UIViewController</code> where <code>UICollectionView</code> resides</p>
  
  <p><strong><a href="https://drive.google.com/open?id=0B6dTvD1JbkgBLTBHQklEWFZESzA&amp;authuser=0" rel="nofollow noreferrer">Here is the project.</a></strong></p>