我正在使用最新的SDK开发iOS5.0+应用。我想做类似的事情我想知道如何嵌套径向渐变。现在这是我的代码:-(void)drawLayer:(CALayer*)layerinContext:(CGContextRef)context{_innerColor=[UIColoryellowColor];_outerColor=[UIColorredColor];CGContextSetAllowsAntialiasing(context,true);CGContextSetShouldAntialias(context,true);CGFloatgraWidth=layer.frame.s