Skip to content

Instantly share code, notes, and snippets.

@bobbypage
Created March 1, 2011 02:47
Show Gist options
  • Save bobbypage/848505 to your computer and use it in GitHub Desktop.
Save bobbypage/848505 to your computer and use it in GitHub Desktop.
Way to compare two UIColors
- (BOOL)compareColors:(UIColor *)firstColor toSecondColor:(UIColor *)toSecondColor {
BOOL areColorsEqual = CGColorEqualToColor(firstColor.CGColor, toSecondColor.CGColor);
return areColorsEqual;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment