title: How can I detect touch events on a UIImageView inside a deep hierarchy of UIViews?
body: <p>I am developing a simple game on iPhone and I started with a View based application, and through the <code>UIViewController</code> I am loading a custom <code>UIView</code> that contains some more <code>UIView</code>s and some <code>UIImageView</code>s. I want to detect touch events on some of the <code>UIImageView</code>s, but I wasn't able so far.   </p>
  
  <p>I've created a second project for testing purposes and figured that <code>UIImageView</code>s handle touch events when the hierarchy is like : </p>
  
  <blockquote>
    <p><code>UIViewController</code> -> <code>UIView</code> -> <code>UIImageView</code>,</p>
  </blockquote>
  
  <p>but when it's like : </p>
  
  <blockquote>
    <p><code>UIViewController</code> -> <code>UIView</code> -> <code>UIView</code> -> <code>UIImageView</code> </p>
  </blockquote>
  
  <p>they are not detected.  </p>
  
  <p>Notes:<br>
   - <code>userInteractionEnabled</code> is <code>YES</code> in all cases<br>
   - all <code>UIViews</code> and <code>UIImageViews</code> I mention above are custom subclasses.  </p>
  
  <p>Can you think of any reason why, when a custom <code>UIImageView</code> gets deeper in the view hierarchy can't receive touch events? </p>