我正在使用核心图来显示散点图图,并且我想使用轻扫手势在图本身和图的数据的UITableView之间切换由。。。制成由。。。做成。我的UISwipeGestureRecognizer在表视图上工作正常,但在图形上不会触发滑动事件。该图是类设置为CPTGraphHostingView一个UIView,我的代码如下:iOS核心图 - 检测图上的轻扫手势
UISwipeGestureRecognizer *swipeRight = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeHistoryData:)];
[swipeRight setDirection:UISwipeGestureRecognizerDirectionRight];
[graphHostingView addGestureRecognizer:swipeRight];
[tableListView addGestureRecognizer:swipeRight];
我的猜测是,CPTGraphHostingView是“吃”以某种方式重击,使他们不受我的识别检测。任何人都可以发表评论或让我走上正确的道路吗?
graphHostingView你有没有设置用户交互属性? –