I need to draw a separator line with some dots on it. I have decided I will do this using the draw method, as opposed to including images of the separator. I will do this for performance and for customisability, as the separator changes sometimes.
Now I have looked into the draw()
method on UIView
and I have noticed that Apple suggests using GLKView
when drawing using OpenGL.
For a simple separator, won't it be too much of a hassle to call OpenGL? Or is the OpenGL overhead negligible? When would I want to use the native UIKit draw()
then?
FYI I don't know either method, but want to learn both methods, so don't reply "what you know best". I am simply asking about performance.