ios coreplot框架中的CPTScatterPlot委托方法不起作用 [英] Delegate method in the ios coreplot framework for CPTScatterPlot does not work
本文介绍了ios coreplot框架中的CPTScatterPlot委托方法不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用委托方法
I was trying to use the delegate method
-(void)ScatterPlot:(CPTScatterPlot *)plot plotSymbolWasSelectedAtRecordIndex:(NSUInteger)index
。不幸的是,它似乎不起作用。此方法在头文件CPTScatterPlot.h中声明。请帮忙!!谢谢!
in the ios coreplot framework. Unfortunately, it does not seem to work. This method is declared in the header file CPTScatterPlot.h . Please help!! Thanks!
推荐答案
尝试增加 plotSymbolMarginForHitDetection
。默认值0.0表示您必须精确击中绘图点才能注册。
Try increasing the plotSymbolMarginForHitDetection
. The default of 0.0 means you have to hit the plot point exactly for it to register.
这篇关于ios coreplot框架中的CPTScatterPlot委托方法不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文