Application get stuck when drawing nearly 40 Scatter Plots using Core Plot in IPad

天涯浪子 提交于 2019-12-07 18:21:32

There's no hard limit on the number of graphs, but you will eventually run out of memory and/or other GPU resources. The maximum number you can show in a particular app will depend on the physical size and complexity of the graphs as well as the hardware it's running on.

If all 40 plots need to be visible at the same time, try setting collapsesLayers to YES on the hosting view so each graph only uses one Core Animation layer. Another technique that you can use if you don't need the graphs to be interactive is to render each graph into an image using the -imageOfLayer method and display those on screen. You can release the graph after rendering.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!