光阴似箭催人老,日月如移越少年。
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]; }
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