摘要:
iphone 随机颜色生成使用类别来为UIColor添加方法:#import <UIKit/UIKit.h>@interface UIColor(Random)+(UIColor *)randomColor;@end实现文件:@implementation UIColor(Random)+(UIColor *)randomColor{ static BOOL seeded = NO; if (!seeded) { seeded = YES; srandom(time(NULL)); } CGFloat red = (CGFloat)random()/(CGFloat)RAN... 阅读全文
posted @ 2013-01-04 17:18
easonoutlook
阅读(678)
评论(0)
推荐(0)