【发布时间】:2013-01-01 18:07:52
【问题描述】:
我已经从 Github 下载了这段代码:https://github.com/gilthonweapps/CorePlotBarChartExample。如何获取 onTap 以选择 bar ?我正在使用以下代码:
#pragma mark - CPTBarPlotDelegate methods
-(void)barPlot:(CPTBarPlot *)plot barWasSelectedAtRecordIndex:(NSUInteger)index {
NSLog(@"barWasSelectedAtRecordIndex %d", index);
}
但这不起作用(它无法识别水龙头)。请帮助。 提前致谢,新年快乐。
【问题讨论】:
-
完整答案在这里:stackoverflow.com/questions/14121683/…。谢谢。
标签: ios ios5 ios6 core-plot bar-chart