Yes, I think so, if I understand your question. This is a bit related, but here is a good example of this:
http://cocoawithlove.com/2008/09/drawing-gloss-gradients-in-coregraphics.html
This is done using Cocoa, not Cocoa Touch, but it translates anything, NSColor. Instead, you should use UIColor. Basically, you need to create a gradient function, and then use:
CGShadingCreateAxial()
to determine the value of your gradient.
Or do you want to have a line with a gradient?
source share