switch (buttonIndex) {
case 0:
aColor = [UIColor redColor];
bColor = [UIColor colorWithRed:0.97 green:0.68 blue:0.75 alpha:1.0];// 鸨色
break;
case 1:
aColor = [UIColor orangeColor];
bColor = [UIColor colorWithRed:1.0 green:0.87 blue:0.72 alpha:1.0];// 肌色
break;
case 2:
aColor = [UIColor yellowColor];
bColor = [UIColor colorWithRed:0.84 green:0.78 blue:0.61 alpha:1.0];// 练色
break;
case 3:
aColor = [UIColor greenColor];
bColor = [UIColor colorWithRed:0.79 green:0.91 blue:0.78 alpha:1.0];// 白绿
break;
case 4:
aColor = [UIColor blueColor];
bColor = [UIColor colorWithRed:0.67 green:0.71 blue:0.85 alpha:1.0];// 藤色
break;
case 5:
aColor = [UIColor magentaColor];
bColor = [UIColor colorWithRed:0.96 green:0.68 blue:0.65 alpha:1.0];// 珊瑚色
break;
case 6:
aColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];// 这里不能使用blackcolor方法 因为blackcolor方法不是按照RGB来计算的
bColor = [UIColor colorWithRed:0.86 green:0.84 blue:0.75 alpha:1.0];// 灰白
break;
default:
aColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];// 这里不能使用blackcolor方法 因为blackcolor方法不是按照RGB来计算的
bColor = [UIColor colorWithRed:0.86 green:0.84 blue:0.75 alpha:1.0];// 灰白
break;