If I add series markers through chartView:viewForMarkerInSeries:withItem:index:originalSourceItemdisplayOptions:, whenever I scroll and a marker is on screen the chart gets layoutSubviews called.
I have a few workarounds to the limitations of the framework in layoutSubviews. Is there a way to get markers on screen out of the box without relying on layoutSuviews?
I'm pretty sure the answer is no, but just want to double check.
Hi Rogelio,
I'm not seeing layoutSubviews getting called on zooming or panning. I'm attaching a small sample I used to test this. Maybe something else is happening in the custom marker code. If you could modify the sample to reproduce the issue, I can look into it.
Thanks
The culprit was this:
options.displayAsImage = NO;
But the reason I turned that off was because tapping on a marker won't trigger chartView:tapForSeries:withItem:atPoint:. So my workaround was to have the markers render as views in order to turn off userInteractionEnabled and thus get chartView:tapForSeries:withItem:atPoint: called.
Anyway to enable chartView:tapForSeries:withItem:atPoint: getting called even when there's a marker on top of the point?