开发中为了测试能够快速看到效果很多时候我们对颜色采用随机颜色 代码块如下

 UIColor * randomColor= [UIColor colorWithRed:((float)arc4random_uniform(256) / 255.0) green:((float)arc4random_uniform(256) / 255.0) blue:((float)arc4random_uniform(256) / 255.0) alpha:1.0];

相关文章:

  • 2022-12-23
  • 2021-08-21
  • 2021-08-23
  • 2021-09-26
  • 2022-03-04
  • 2022-12-23
  • 2021-07-29
  • 2022-12-23
猜你喜欢
  • 2021-08-12
  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2021-05-23
  • 2021-10-29
  • 2022-12-23
相关资源
相似解决方案