I have developed an animated Pie Chart, in which when a user clicks on a Pie Chart slice, it comes out of the chart. Currently, I am drawing each slice of the Pie on a different CGLayer. When the user taps on a slice I pick the color of that particular pixel and match it with the RGB code (hard-coded) which pulls out the corresponding layer.
I don't want to use any third-party charting library like core plot.
Is there a way to make each layer an individual graphic entity, so that a touch on that object can be detected?
Thanks