Let’s assume the file space on the iphone isn’t an issue, what would perform better? Would there be any noticeable speed/smoothness difference between the two?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Whilst not specifically targeting gradients (rather patterns) this tutorial by Ray Wenderlich does have some basic information at the bottom with regards images vs. Core Graphics drawing.
TL;DR Core Graphics is seemingly quite a bit faster when used in this context.
For what it’s worth, I do as much drawing as possible in my app using Core Graphics including such things as radial gradients and textured
UILabel‘s. As a developer with limited design skills I find I often get far better results drawing this way than fumbling about using something like Photoshop.Another advantage with using Core Graphics is that you can change things on the fly with ease, such as animating a gradient, which would be incredibly expensive were you to do it solely with images.