Search code examples
objective-chittesttouchesbegantouchesmoved

Get hit test event type


Is there a way to know if the hitTest:withEvent: method is being thrown because of a touchesBegan, touchesMoved or touchesEnded event?

by now I only do:

if([event type]==UIEventTypeTouches)
{

}

but this is not exclusive enough


Solution

  • Nevermind, found it here: What works to pass touches through to (and display all) subviews?