Check code
const CGFloat *c = CGColorGetComponents([[UIColor whiteColor] CGColor]); slider1.value = c[0]; slider2.value = c[1]; slider3.value = c[2];
c [2] gets 0. For whiteColor all RGB values ββare 1.0. Why doesn't it return the correct value for the blue component?
Any piece of code? to get RGB values ββfrom white?
source share