I am getting a UIColor returned from this method:
- (UIColor *)getColor {
return [UIColor colorWithRed:redSlider.value green:greenSlider.value blue:blueSlider.value alpha:1.0];
}
and getting color like this:
SelectedColor=[(ColorPickerView *)alertView getColor];
Now I want to get red, green, blue from SelectedColor, in order to use those values. I want values between 0 and 1. Also when I use SelectedColor.CGColor, my application is crashing.