cool hit counter TableViewCell and Baidu Maps gesture conflict_Intefrankly

TableViewCell and Baidu Maps gesture conflict


1523525631822.jpg

If this is to be implemented, the problem that arises is that zooming the map is not sensitive, and dragging the TableView up and down will follow solution

 UIPinchGestureRecognizer *pinch = [[UIPinchGestureRecognizer alloc]init];
 pinch.delegate = self;
[self.tableV addGestureRecognizer:pinch];

- (BOOL)gestureRecognizer:(UIGestureRecognizer*)gestureRecognizer shouldReceiveTouch:(UITouch*)touch {
     // Determine if the current View is the TapDetectingView of Baidu Maps.
    NSString *touchViewCls = NSStringFromClass([touch.view class]);
    if([touchViewCls isEqual:@"TapDetectingView"]){
         // If the gesture handling view for Baidu Maps makes the TableView not scroll and gestures accordingly
        self.tableV.scrollEnabled = NO;
        return NO;
    }
     // Unblock scrolling
    self.tableV.scrollEnabled = YES;
    return YES;
}

Recommended>>
1、Whats the reason Why are all the rich Americans who got rich from Bitcoin moving to Puerto Rico
2、The king of cattle magic hall seethrough cheat aids The general software hangings of the Hall of the Cow King of Magic
3、Python OpenCV a dozen lines of code to imitate world famous paintings
4、New way to build a website two degrees of selfservice website building system
5、Blockchain series ethereum is bitcoin and infinite possibilities

    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号