title: UIButton not responding to touch in UIScrollView nested in another UIScrollView
body: <p>I have been trying to find a solution to the following problem :
  I have a <code>UIScrollView</code> (vertical Scroll) in which I have nested another <code>UIScrollView</code> (horizontal). Both <code>UIScrollViews</code> also have <code>UIButtons</code> nested in them. However, the <code>UIButtons</code> only respond to touches in the parent <code>UIScrollView</code> (vertical).</p>
  
  <p>For some reason, the <code>UIButtons</code> in the horizontal (nested) <code>UIScrollView</code> don't seem to respond to touch.</p>
  
  <p>I have tried all of the following : </p>
  
  <p>Subclassing both UIScrollViews and overriding the touchesShouldCancelInContentView method like so :</p>
  
  <pre><code>override func touchesShouldCancelInContentView(view: UIView) -&gt; Bool {        
  
     return !view.isKindOfClass(UIButton)
  
  } 
  </code></pre>
  
  <p>I also tried to cancel touches for the nested <code>UIScrollView</code> from within the parent <code>UIScrollView</code> but then I couldn't scroll vertically anymore.</p>
  
  <p>Both my <code>UIScrollViews</code> have the following :</p>
  
  <pre><code>UISCROLLVIEW.delaysContentTouches = false
  UISCROLLVIEW.canCancelContentTouches = true
  </code></pre>
  
  <p>I have tried messing around with these values but never managed to get a touch event on the <code>UIButton</code> nested in the nested <code>UIScrollView</code>. I have come to a point where I am starting to wonder if this is actually possible… Although it seems like the AppStore is doing it. Or is because they are using <code>UICollectionViews</code> ?</p>
  
  <p>Any suggestions ?</p>
  
  <p><strong>EDIT :</strong> 
  I wanted to make sure the touch events WERE being cancelled for the UIScrollView when I was clicking the UIButton, so I logged the touchesBegan of the UIScrollView and sure enough I get a print in the console everywhere in the UIScrollView EXCEPT in when I touch the UIButton. However -and this is strange- if I subclass the UIButton and override touchesBegan I DO NOT get a log ! Really a t a loss…</p>