使用rgba值生成的颜色

[UIColor whiteColor]生成的颜色
无法混用来绘制渐变

ios5下:

UIColor *color = [UIColor colorWithRed:0.7 green:0.8 blue:1.0 alphe:1.0];
NSMutableArray *colors = [NSMutableArray arrayWithObjects:color, [UIColor whiteColor],nil];

而这段代码在ios4下无法传给绘制函数正常绘制渐变,要改成:

UIColor *color = [UIColor colorWithRed:0.7 green:0.8 blue:1.0 alphe:1.0];
UIColor *whiteColor = [UIColor colorWithRed:1.0 green:1.0 blue:1.0 alphe:1.0];
NSMutableArray *colors = [NSMutableArray arrayWithObjects:color, whiteColor,nil];
评论模块尚未加载