Solved! Go to Solution.
Any word from you guys (ESRI) as to whether hooking up gesture recognizers is recommended or not?
// Add gesture recognizers to map view UIPanGestureRecognizer *panGestureRecognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(mapPannedByTouch:)]; UIPinchGestureRecognizer *pinchGestureRecognizer = [[UIPinchGestureRecognizer alloc] initWithTarget:self action:@selector(mapPinchedByTouch:)]; [self.mapView addGestureRecognizer:panGestureRecognizer]; [self.mapView addGestureRecognizer:pinchGestureRecognizer];
- (void)mapPannedByTouch:(UIGestureRecognizer*)gestureRecognizer { NSLog(@"map panned by touch!"); } - (void)mapPinchedByTouch:(UIGestureRecognizer*)gestureRecognizer { NSLog(@"map pinched by touch!"); }
Any word from you guys (ESRI) as to whether hooking up gesture recognizers is recommended or not?
No, it is not recommended to hooking up gesture recognizers. If you do so then it'll interfere the functionality of map. In current SDK, there is no easy way to differentiate between programmatically panning/zooming the map and one actually touching and pinching the map. However, the next version of the SDK will have that functionality.
Regards,
Nimesh