ios开发之--随机背景颜色
记录个随机背景颜色的方法:
+ (UIColor*) randomColor{ NSInteger r = arc4random() % 255; NSInteger g = arc4random() % 255; NSInteger b = arc4random() % 255; return [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1]; }
类方法,仅做记录!
本文来自博客园,作者:稻草人11223,转载请注明原文链接:https://www.cnblogs.com/hero11223/p/7940775.html