CAGradientLayer
Inherits from: CALayer:NSObject
Framework: QuartzCore in iOS 3.0 and later.
官方文档介绍:The CAGradientLayer
class draws a color gradient over its background color, filling the shape of the layer (including rounded corners)
CAGradientLayer类可以为图层绘制渐变的背景颜色,填充涂层的形状(包括圆角)
具体的使用方法,请参考一篇讲的很详细的博客。