PHPz2017-04-18 09:28:29
When NSArray is initialized via @[] syntax, it is necessary to ensure that all elements are not nil.
You need to determine in advance whether the element is nil
if((_inputColor0.CGColor && _inputColor1.CGColor)) {
NSArray *colors = @[(__bridge id)_inputColor0.CGColor, (__bridge id)_inputColor1.CGColor];
}