iOSPalette
iOSPalette copied to clipboard
这个地方会引起数组越界崩溃
麻烦解决一下
find the same crash, I try to avoid it
+1
同上
我的解决方案是加一个防空判断,平稳运行一年多,最多应该就是特殊情况下颜色会奇怪一点。 if (_distinctColors.count >= i + 1) { color = [_distinctColors[i] integerValue]; }
他这个出现这种情况估计就是因为全局的 hist 导致的