Skip to content
Browse files

Fix string formatting type length mismatch.

  • Loading branch information...
1 parent e061642 commit 6b5a39a271ad7b97670969146a3a8781cae0753f @fcanas committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 UIColor+Expanded.m
View
4 UIColor+Expanded.m
@@ -507,7 +507,7 @@ - (NSString *)stringFromColor {
- (NSString *)hexStringFromColor {
- return [NSString stringWithFormat:@"%0.6X", self.rgbHex];
+ return [NSString stringWithFormat:@"%0.6lX", self.rgbHex];
}
- (NSString *)cssStringFromColor {
@@ -577,7 +577,7 @@ - (NSString *)closestCrayonName {
- (NSString *)hexStringFromColorAndAlpha {
- return [NSString stringWithFormat:@"%0.8X", self.rgbaHex];
+ return [NSString stringWithFormat:@"%0.8lX", self.rgbaHex];
}
+ (UIColor *)colorWithString:(NSString *)stringToConvert {

0 comments on commit 6b5a39a

Please sign in to comment.
Something went wrong with that request. Please try again.