新建PCH文件以及常用宏定义

新建PCH文件以及常用宏定义

新建PCH文件以及常用宏定义

新建PCH文件以及常用宏定义

$(SRCROOT)/项目名/pch文件名.pch

 

//0-255的随机数

#define randint arc4random() % 256

//随机色

#define randColor [UIColor colorWithRed:randint/255.0 green:randint/255.0 blue:randint/255.0 alpha:1.0]

相关文章:

  • 2021-06-16
  • 2021-10-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-18
  • 2021-06-15
猜你喜欢
  • 2021-05-11
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2022-01-06
  • 2022-12-23
相关资源
相似解决方案