判断两个颜色是否相等(UIColorA == UIColorB)
+ (BOOL) isEqualToColor:(UIColor*)colorA anotherColor:(UIColor*)colorB
{
if (CGColorEqualToColor(colorA.CGColor, colorB.CGColor)) {
return YES;
}else {
return NO;
}
}
+ (BOOL) isEqualToColor:(UIColor*)colorA anotherColor:(UIColor*)colorB
{
if (CGColorEqualToColor(colorA.CGColor, colorB.CGColor)) {
return YES;
}else {
return NO;
}
}