我已经从Github下载此代码:https://github.com/gilthonweapps/CorePlotBarChartExample。如何获得onTap的酒吧选择?我正在使用以下代码:coreplot酒吧水龙头不工作
#pragma mark - CPTBarPlotDelegate methods
-(void)barPlot:(CPTBarPlot *)plot barWasSelectedAtRecordIndex:(NSUInteger)index {
NSLog(@"barWasSelectedAtRecordIndex %d", index);
}
但是,这是行不通的(它不承认Tap)。请帮助。 在此感谢提前和新年快乐。
完整答案在这里:http://stackoverflow.com/questions/14121683/how-to-set-plot-delegate-in-coreplot/14122424#14122424。谢谢。 –