I have a very simple graph that I want to enable touch on, I have the
first part working:
plotSpace.delegate = self;
and the method:
-(BOOL)plotSpace:(CPPlotSpace *)space
shouldHandlePointingDeviceDownEvent:(id)event atPoint:(CGPoint)point
{
NSLog(@"touched at: x: %f y: %f", point.x, point.y);
}
How do I convert the point “point” to the plot space of my graph?
I can see the methods, but Im unsure on how to use them, the doco,
although large, doesnt really describe them well enough 🙂
Thanks a lot
Mark
I have to admit, I forgot about this question, thanks for the reply Steve.
I did get it solved too, here is my implementation (im extending
CPXYGraph)touchDataPoint then contains the coords that the user has touched.