Quote:
Originally Posted by kinkin
Hi
I am newbird. I create pie chart base on coreplot library.
I want to rotating pie chart accord user finger.
I saw this is thread( http://www.iphonedevsdk.com/forum/ip...-location.html).
but I am good at coreplot.
I think I need add event “shouldHandlePointingDeviceDraggedEvent”, but I don't know how to got the pie chart center position.
so , if anyone use it ,please help.
if can attach code, I think I can read it better.
thanks!  
|
Can you treat CorePlot as a UIView? If not, can you capture it as a bitmap?
Once you put your corePlot into a view, getting it to rotate with finger motion is pretty trivial.
Do a search in the Xcode docs for "touches". Take a look at the sample app that comes up that uses gesture recognizers.
If you want to be able to rotate the pie chart with a single finger, there's a thread I participated in from a while back on a single finger rotation gesture recognizer that's available in open source from GitHub. You should be able to find it by searching on "single finger rotation gesture" here, or on the web.