UIColor 详解

1 UIColor *white1 = [UIColor whiteColor]; // 白色
2 UIColor *white2 = [UIColor colorWithRed:1.0 green:1.0 blue:1.0 alpha:1.0];  // 白色
3 UIColor *orange = [UIColor colorWithRed:1.0 green:0.5 blue:0.0 alpha:1.0];  // 橙色
4 UIColor *imageColor = [UIColor colorWithPatternImage:image];          // 根据图片生成颜色

5 [[UIColor blackColor] setStroke];    // 设置边框颜色
6 [[UIColor blueColor] setFill];      // 设置背景填充色
7 [[UIColor greenColor] set];        // 设置字符颜色
原文地址:https://www.cnblogs.com/sell/p/2913380.html