We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f41b635 + 35acdac commit c5ca9dcCopy full SHA for c5ca9dc
AWLThemeManager/AWLThemeManager.m
@@ -98,7 +98,11 @@ - (UIColor*)colorFromString:(NSString*)colorValue
98
{
99
if ([self isValidString:colorValue]) {
100
NSArray* array = [colorValue componentsSeparatedByString:@","];
101
- if (array && [array count] == 4) {
+ if (array && [array count] == 2) {
102
+ return [UIColor colorWithWhite:[array[0] floatValue]
103
+ alpha:[array[1] floatValue]];
104
+ }
105
+ else if (array && [array count] == 4) {
106
return [UIColor colorWithRed:[array[0] floatValue]/255
107
green:[array[1] floatValue]/255
108
blue:[array[2] floatValue]/255
0 commit comments