阅读背景:

iOS开发--MKMapView添加UIPanGestureRecognizer

来源:互联网 

    当我们想给MKMapView添加拖动手势时,第一个想法多是这样:

- (void)viewDidLoad
{
    //....
    UIPanGestureRecognizer *panGesture = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(handlePan:)];
    [self.mapView addGestureRecognizer:panGesture];
}

- (void)handlePan:(UIPanGestureRecognizer*) recognizer
{
    NSLog("handlePan");
}
- (void)view




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: