【问题标题】:Core plot Bar Graph delegate methods not getting called核心图条形图委托方法没有被调用
【发布时间】:2014-08-31 08:06:11
【问题描述】:

我一直面临这个问题,高高在低也找不到任何解决方案。条形图委托方法(void) - barPlot:barWasSelectedAtRecordIndex: 没有在点击任何栏后被调用。

GrpahView.m 中,我设置了plot.delegate=self,在GraphView.h 中,我添加了这些<CPTBarPlotDelegate>..

我也设置了plotSpace.allowsUserInteractionEnabled = YES.
还是没有运气。

请给我一个建议。我的图表被绘制在一个视图上,该视图是另一个视图的子视图。

【问题讨论】:

  • 请详细说明您的问题。什么是 GraphView.h?什么是 barPlot ... 等等。 :)

标签: ios cocoa-touch graph core-plot


【解决方案1】:

确保父视图将触摸事件传递给图形托管视图。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-12-03
    • 2020-11-28
    • 2017-05-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多