I am using 2 variations of the same color, a light and dark version, to create a gradient.
Code:
CAGradientLayer *gradient = [CAGradientLayer layer];
UIColor is just an Objective-C object wrapper of the C object CGColor. There should be no difference.
UIColor
CGColor