title: Pass touches on some part of UICollectionView to underlying views
body: <p>First take a look at the attacthed image:
  <a href="https://i.stack.imgur.com/Vi45p.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Vi45p.png" alt="enter image description here"></a></p>
  
  <p>My hiearchy looks as following:</p>
  
  <ul>
  <li>UIView</li>
  <li><ul>
  <li>UIButton</li>
  </ul></li>
  <li><ul>
  <li>UICollectionView</li>
  </ul></li>
  <li><ul>
  <li><ul>
  <li>UICollectionViewCell</li>
  </ul></li>
  </ul></li>
  <li><ul>
  <li><ul>
  <li>UICollectionViewCell</li>
  </ul></li>
  </ul></li>
  <li><ul>
  <li><ul>
  <li>UICollectionViewCell</li>
  </ul></li>
  </ul></li>
  <li><ul>
  <li><ul>
  <li>UICollectionViewCell</li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>UICollectionView is added to UIVew as <code>H:[collectionView(==270)]|</code> and <code>V:|-(70)-[collectionView]-(70)-|</code>.</p>
  
  <p>I have two requirements:</p>
  
  <p>1) only the blue part of the UICollectionViewCell should trigger the <code>collectionView::didSelectItemAtIndexPath:</code> method. Which I have sucesfully implemented with </p>
  
  <pre><code>- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
  {
      UIView *hitView = [super hitTest:point withEvent:event];
      if (hitView == self.customView) {
          return self;
      }
      return nil;
  }
  </code></pre>
  
  <p>on the custom class UIColectionViewCell. The <code>customView</code> property is the blue/red UIView of the cell.
  This works as expected.</p>
  
  <p>2) I want any gestures (Tap/LongTap/Pan/...) that are done in the green part of the UICollectionViewCell or in the UICollectionVIew itself (the background that is here white with 0.5 opacity) to be passed down to the superview. For Example the turquoise UIButtion below.
  The green part should also not scroll the CollectionView .. it just has to be completly transparent to any gestures.</p>
  
  <p>How can I do that? Tried a lot of different approaches but none of them worked. I know how to do it with a regular UIView, but cannot get it to work on a UICollectionView and its cells.</p>
  
  <p>Keep in mind that there will be other UIViews or UIButtions that will be interactable and placed under the green part of collection view. The green color will later just be UIClearColor.</p>
  
  <p>Suggestion to just have the UICollectionView smaller width (width of the blue part) is not an option since the Blue/Red part of UICell has to strecth out to full width of the cell in some cases.</p>