title: CAShapeLayer hitTest touch
body: <p>I can't understand why a CAShapeLayer does not respond to hitTest</p>
  
  <p>This function always goes to // touches is outside</p>
  
  <p>How do I detect a touch on a CAShapeLayer?</p>
  
  <pre>
  -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
  {   
  
      currentPoint = [[touches anyObject] locationInView:self];
  
      for (CAShapeLayer *layer in self.layer.sublayers) {    
  
          if(layer == shapeLayer) {
  
              if([layer hitTest:currentPoint])
              {
                  // touche is on the layer
              }
              else {
                  // touche is outside
              }
  
          }
  
      }       
  
  }
  </pre>