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];        // 设置字符颜色

 

相关文章:

  • 2021-04-24
  • 2022-12-23
  • 2022-12-23
  • 2021-06-22
  • 2022-01-13
  • 2021-08-01
  • 2021-07-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案