ios - 颜色渐变问题
大家讲道理
大家讲道理 2017-04-18 09:26:29
0
1
315
大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
PHPzhong

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];
}
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template