Recently I encountered some code where trying to get the CIColor property of a UIColor fails. The UIColor was initialized as a simple [UIColor blackColor] and trying to get the
try this(swift version)
var clcor = CIColor(color: UIColor.redColor())
obj :
CIColor *aCIColor = [[CIColor alloc] initWithColor:[NSColor blackColor]];