coreplot bar tap not working

女生的网名这么多〃 提交于 2019-12-10 11:17:39

问题


I have downloaded this code from Github : https://github.com/gilthonweapps/CorePlotBarChartExample .How to get onTap for bar selected ? I am using the following code:

#pragma mark - CPTBarPlotDelegate methods
-(void)barPlot:(CPTBarPlot *)plot barWasSelectedAtRecordIndex:(NSUInteger)index {

     NSLog(@"barWasSelectedAtRecordIndex %d", index);
}

But this is not working (Its not recognizing the Tap).Please Help. Thanks in Advance and Happy New Year.


回答1:


Set the plot delegate to your bar plot delegate object. This is usually the view controller but it does not have to be.



来源:https://stackoverflow.com/questions/14112893/coreplot-bar-tap-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!