有两种委托方法可以更改地图区域:
- (void)mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated
- (void)mapView:(MKMapView *)mapView regionWillChangeAnimated:(BOOL)animated
我的问题是:是否可以通过双击或缩放来检测地图区域是否已更改?
UITapGestureRecognizer *recognizer = [[UITapGestureRecognizer alloc]
initWithTarget:self action:@selector(handleDoubleTap:)];
recognizer.numberOfTapsRequired = 2;
[self addGestureRecognizer:recognizer];
并使用UIPinchGestureRecognizer
对捏缩放进行相同操作>