I have a custom UIView
that implements hitTest:withEvent:
-(UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
{
.... some code ....
int x = 0;
x = [[event allTouches] count];
return [super hitTest:point withEvent:event];
}
The problem is that x
is always 0
. Do I have implement other APIs or configure the UIView
to start getting the touches?
I only needed it in order to differentiate between touch start/move and end.
NSLog(@"Event: %@", event);
? – Leiker