Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
275
Prevent chart with markers from calling layoutSubviews when scrolling?
posted

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.

Parents
  • 26458
    Offline posted

    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

    CustomMarkers.zip
Reply Children