I need to detect two finger touch event. If i touch the screen with two fingers on same time, so everthing is ok. Just using such code:
- (void)touchesBegan:(NSS
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *touch1, *touch2;
CGPoint location1, location2;
NSSet *allTouches = [event allTouches];
touch1 = [[allTouches allObjects] objectAtIndex:0];
location1 = [touch1 locationInView:self];
if([allTouches count] > 1)
{
touch2 = [[allTouches allObjects] objectAtIndex:1];
location2 = [touch2 locationInView:self];
}
}