问题
I was trying to use the delegate method
-(void)ScatterPlot:(CPTScatterPlot *)plot plotSymbolWasSelectedAtRecordIndex:(NSUInteger)index
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!
回答1:
Try increasing the plotSymbolMarginForHitDetection
. The default of 0.0 means you have to hit the plot point exactly for it to register.
来源:https://stackoverflow.com/questions/11550624/delegate-method-in-the-ios-coreplot-framework-for-cptscatterplot-does-not-work