You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(UIColor*) colorWithRGBHex: (UInt32) hex {
int r = (hex >> 16) & 0xFF;
int g = (hex >> 8) & 0xFF;
int b = (hex) & 0xFF;
return [UIColor colorWithRed: r / 255.0f
green: g / 255.0f
blue: b / 255.0f
alpha: 1.0f];
}
The text was updated successfully, but these errors were encountered:
Not Work RGB with hexadecimal color ;
example:[UIColor colorWithRGBHex:0xF5F6F7];
int r = (hex >> 16) & 0xFF;
int g = (hex >> 8) & 0xFF;
int b = (hex) & 0xFF;
return [UIColor colorWithRed: r / 255.0f
green: g / 255.0f
blue: b / 255.0f
alpha: 1.0f];
}
The text was updated successfully, but these errors were encountered: