我从 Github 下载了这段代码:https://github.com/gilthonweapps/CorePlotBarChartExample https://github.com/gilthonweapps/CorePlotBarChartExample.如何获得选定栏的onTap?我正在使用以下代码:
#pragma mark - CPTBarPlotDelegate methods
-(void)barPlot:(CPTBarPlot *)plot barWasSelectedAtRecordIndex:(NSUInteger)index {
NSLog(@"barWasSelectedAtRecordIndex %d", index);
}
但这不起作用(它无法识别水龙头)。请帮忙。
提前致谢,新年快乐。
设置情节delegate
到您的条形图委托对象。这通常是视图控制器,但不一定是。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)