【发布时间】:2010-11-18 13:00:00
【问题描述】:
当用户单击(或触摸)使用 Core Plot 创建的 mye 图形上的 plotSymbol 时,我正在尝试运行一些代码。
这不适用于散点图:
-(void)scatterPlot:(CPScatterPlot *)plot plotSymbolWasSelectedAtRecordIndex: (NSUInteger)index
{
NSLog(@"plotSymbolWasSelectedAtRecordIndex %d", index);
}
但是当我使用 barPlot 时这很有效:
-(void)barPlot:(CPBarPlot *)plot barWasSelectedAtRecordIndex:(NSUInteger)index
{
NSLog(@"barWasSelectedAtRecordIndex %d", index);
}
当用户点击或触摸我的散点图时,我尝试捕捉时遗漏了什么?
【问题讨论】:
-
嗨,我也在尝试将这个功能集成到我的代码中,但是当我添加这个方法时,当我们点击 barplot 时它甚至没有被调用。请解释清楚,关于这个方法的实施。thx 在提前...
标签: objective-c core-plot