美文网首页
Xcode Analyze 常见问题

Xcode Analyze 常见问题

作者: 114105lijia | 来源:发表于2019-06-21 10:42 被阅读0次

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

相关文章

网友评论

      本文标题:Xcode Analyze 常见问题

      本文链接:https://www.haomeiwen.com/subject/tloeqctx.html