Trying to change the color of the shadow. It works:
self.layer.shadowColor = [[UIColor blueColor] CGColor];

but I want to make it a normal color, so I tried:
self.layer.shadowColor = [[UIColor colorWithRed:191/255.0f green:199/255.0f blue:203/255.0f alpha:1] CGColor];

which does not work.
what am I doing wrong?
EDIT:
code snippet from my init method:
self.layer.shadowOpacity = 0; self.layer.shadowColor = [[UIColor blueColor] CGColor];
EDIT 2:
The odd part is that I extended UIColor to include some of my custom colors; if i use:
self.layer.shadowColor = [[UIColor pointColorBlue] CGColor];
from my UIColor + myColor:
+(UIColor *) pointColorBlue { return [UIColor colorWithRed:50/255.0f green:50/255.0f blue:255/255.0f alpha:1]; }
It works great.
source share