当用户点击(或触摸)使用Core Plot创建的mye图上的plotSymbol时,我正在尝试运行一些代码.
这不适用于scatterPlot:
-(void)scatterPlot:(CPScatterPlot *)plot plotSymbolWasSelectedAtRecordIndex: (NSUInteger)index
{
NSLog(@"plotSymbolWasSelectedAtRecordIndex %d", index);
}
Run Code Online (Sandbox Code Playgroud)
但是当我使用barPlot时这很有效:
-(void)barPlot:(CPBarPlot *)plot barWasSelectedAtRecordIndex:(NSUInteger)index
{
NSLog(@"barWasSelectedAtRecordIndex %d", index);
}
Run Code Online (Sandbox Code Playgroud)
当用户点击或触摸我的scatterPlot时,我尝试捕获的内容是什么?