一、Value stored to '' during its initialization is never read這個值並無被使用,註釋或者刪除便可;還有一種狀況就是,初始化了兩次
bash
二、Passed-by-value struct argument contains uninitialized data (e.g., field: '')項目中的值沒有及時的初始化,初始化使用後便可ui
三、The 'viewWillAppear:' instance method in UIViewController subclass '' is missing a [super viewWillAppear:] call
spa
沒有調用super方法code
四、Returning 'self' while it is not set to the result of '[(super or self) init...]'
cdn
修改爲以下blog
- (instancetype)initWithFrame:(CGRect)frame {
self = [super initWithFrame:frame];
if (self) {
[self layoutUI];
}
return self;
}
複製代碼