On iOS devices, in which occasions is it better to draw graphics using Core Graphics than using image files?
What are the advantages of doing so in terms of resources?
On iOS devices, in which occasions is it better to draw graphics using Core Graphics than using image files?
What are the advantages of doing so in terms of resources?
I think, images are better for it's performance. But, when we want to develop something which will can be changed (eg. color change, shape change etc.), scaled or can be animated, then, we should go for core graphics.
Core graphics is amazing when we want to draw something with some mathematical logic and want to play with that! In schools, we all learn circle equation, line equation etc. in mathematics. Core graphics is the right tool to visualise our mathematical knowledge and build some more crazy things with that!
Core graphics is also very useful for simulation type applications.