views:

50

answers:

1

Has anyone tried to add touch interaction to CorePlot?

I'm trying to implement custom layer to be able to draw a line on the chart which will show specific value and will draw itself in specified location when user touches chart area, but I'm not having any luck.

A: 

You can enable interaction by changing the allowsuserinteraction property.

[[graph defaultPlotSpace] setAllowsUserInteraction:TRUE];

xmr
I've already set setAllowsUserInteraction:TRUE but the problem is that when I'm adding my custom layer to the chart - the chart itself stops receiving any touch events
Nick