How do you enable touch interaction in Core Plot?
Asked Answered
R

1

9

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.

Redemption answered 3/9, 2010 at 10:43 Comment(1)
Hi Nick, have u got any way to do it? Im searching for the same. I need the interaction on custom layer at the top and also on graph layer. Pls post the way u got.Logographic
C
3

You can enable interaction by changing the allowsuserinteraction property.

[[graph defaultPlotSpace] setAllowsUserInteraction:TRUE];

Cowan answered 18/9, 2010 at 12:28 Comment(1)
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 eventsRedemption

© 2022 - 2024 — McMap. All rights reserved.