- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch { if (self.panningGestureDelegate && [self.panningGestureDelegate respondsToSelector:@selector(gestureRecognizer:shouldReceiveTouch:)]) { BOOL result = [self.panningGestureDelegate gestureRecognizer:gestureRecognizer shouldReceiveTouch:touch]; if (!result) return result; } if ([[touch view] isKindOfClass:[UISlider class]]) return NO; _panOrigin = self.slidingControllerView.frame.origin; BOOL isMap = NO; for (UIView* theview in [touch.view subviews] ) { if ([theview isKindOfClass:[BMKPinAnnotationView class]]) { isMap=YES; } } if (isMap) { return NO; }else{ return YES; } }
版权声明:本文为博主原创文章,未经博主允许不得转载。
IIViewDeckController拖动事件与百度地图拖动事件冲突
原文地址:http://blog.csdn.net/lcxihonglei/article/details/46828003