Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (10 sloc) 0.357 kB
#import "UIColor+mxcl.h"
@implementation UIColor (mxcl)
+(UIColor *)randomColor {
// srandom(time(NULL));
CGFloat red = (CGFloat)random()/(CGFloat)RAND_MAX;
CGFloat blue = (CGFloat)random()/(CGFloat)RAND_MAX;
CGFloat green = (CGFloat)random()/(CGFloat)RAND_MAX;
return [UIColor colorWithRed:red green:green blue:blue alpha:1.0];
}
@end
Jump to Line
Something went wrong with that request. Please try again.