all of you. I have been working on map view but i unable solve pinch and tap detection problem.I want to detect pinch and tap in map view.
I have tried following code in iPhone MapView
UITapGestureRecognizer *Tap= [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(checktap)]; [self.mapView addGestureRecognizer:Tap]; [Tap release];
UIPinchGestureRecognizer *pinch = [[UIPinchGestureRecognizer alloc]initWithTarget:self action:@selector(checkpinch)]; [self.mapView addGestureRecognizer:pinch]; [pinch release];
Where tap is working but pinch detection is not working.
Please help me.
Thanks in Advanced.