我已经从Github:https://github.com/gilthonweapps/CorePlotBarChartExample .How下载了这段代码,以便为bar选择onTap?我使用了以下代码:
#pragma mark - CPTBarPlotDelegate methods
-(void)barPlot:(CPTBarPlot *)plot barWasSelectedAtRecordIndex:(NSUInteger)index {
NSLog(@"barWasSelectedAtRecordIndex %d", index);
}但是这不起作用(它无法识别Tap).Please帮助。提前道谢,新年快乐。
发布于 2013-01-02 08:37:38
将plot delegate设置为条形图代理对象。这通常是视图控制器,但不一定是。
https://stackoverflow.com/questions/14112893
复制相似问题