Reputation: 4248
I have 5 custom views which inherit from CPTGraphHostingView
, i.e they are 5 different plots build using Core Plot Framework.
I initialize these plots and add as subviews to an UIScrollView
. Each view is fullscreen, and I'm using pagination to scroll to different plot. The problem is that when I'm loading all this stuff, memory increases significantly, and there is a risk of app crash. How can I optimize the memory usage?
Upvotes: 0
Views: 289
Reputation: 101
In this case you are loading all the CPTGraphHostingView at once because of that memory is getting increased significantly. As per description you are using horizontal pagination to load next view. You can use following option to optimise memory usage
Upvotes: 2