I\'m creating a color object using the following code.
curView.backgroundColor = [[UIColor alloc] initWithHue:229 saturation:40 brightness:75 alpha:1];
The top voted answer is outdated:
error: :3:1: error: 'CGColorGetComponents' has been replaced by property 'CGColor.components'
Instead, use
myUIColor.cgColor.components