我实现了以下函数,并将 CPTScatterPlot 设置delegate
为 self 和boundLinePlot.plotSymbolMarginForHitDetection
320.0f。
-(void)scatterPlot:(CPTScatterPlot *)plot plotSymbolWasSelectedAtRecordIndex:(NSUInteger)index {
NSLog(@"index %d",index);
}
当我在任何地方触摸散点图时,委托方法正确运行并返回最近的索引,但滚动不起作用,因为委托方法捕获了所有点击。
如何解决这个问题呢?
感谢您的回复