I\'m creating a color object using the following code.
curView.backgroundColor = [[UIColor alloc] initWithHue:229 saturation:40 brightness:75 alpha:1];
const float* colors = CGColorGetComponents( curView.backgroundColor.CGColor );
Thanks. I had to add the const at the start of the line as it was generating a warning.
const