objective c - CGColor to RGBA -
i have nsstring output in consolle:
2017-03-28 14:34:47.794794+0200 test[2647:240896] nscustomcolorspace srgb iec61966-2.1 colorspace 1 0 0 1
how convert in rgba value and/or nscolor in simple way nsstring?
for (int = 0; < [arraycolors count]; i++) { nsstring *aaa = (nsstring*) [arraycolors objectatindex:i]; }
i tried uicolor rgba values following:
cgfloat r_fontcolor, g_fontcolor, b_fontcolor, a_fontcolor; [getlabel.textcolor getred:&r_fontcolor green:&g_fontcolor blue:&b_fontcolor alpha:&a_fontcolor];
hope works covert nscolor rgba values also.
Comments
Post a Comment