how to dynamically recolor a CGGradientRef
- by saintmac
I have three CGGradientRef's that I need to be able to dynamically recolor. When I Initialise the CGGradientRef's the first time I get the expected result, but every time I attempt to change the colors nothing happens. Why?
gradient is an instance variable ins a subclass of CALayer:
@interface GradientLayer : CALayer
{
CGGradientRef…