Question

Using this function

- (void)scatterPlot:(CPTScatterPlot *)plot plotSymbolWasSelectedAtRecordIndex:(NSUInteger)index 

I can add an annotation to a selected point, although it is diffucult to select one point on the graph with your finger on an iPad or iPhone. Is there anyway to enable this function to be more forgiving for a finger pointing device instead of a mouse?

Was it helpful?

Solution

Use the plotSymbolMarginForHitDetection property on the scatter plot. This defines the distance from the center of a plot point, given in pixels, where a touch will still register.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top