Xcode Analyze 常见问题

2019-06-21  本文已影响0人  114105lijia

1.Value stored to 'minImageX' is never read

image.png

可以搜索一下整个项目,会发现都没有用到这个属性,所以直接删掉即可

2.nil returned from a method that is expected to return a non-null value

image.png

不希望返回nil;可以

return [UICollectionReusableView new];

3.nil passed to a callee that requires a non-null 1st parameter

image.png

我传的这个参数可能为nil,所以需要设置这个变量可以为空:

Code:(NSString * _Nullable)bigCatCode
上一篇 下一篇

猜你喜欢

热点阅读