Created
November 3, 2018 19:38
-
-
Save aChase55/f095bf5f4586fcdc3ccfb859b3ff572e to your computer and use it in GitHub Desktop.
Objc Random UIColor macro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define RANDOM_COLOR [[UIColor alloc] initWithRed:arc4random()%256/256.0 green:arc4random()%256/256.0 blue:arc4random()%256/256.0 alpha:1.0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment