我正在尝试将我的代码转换为iOS 8项目,我需要一些解释如何修复此警告: "Convenience initializer missing a 'self' call to another initializer"
在这段代码上:
-(instancetype) initWithCoder:(NSCoder *)aDecoder // warning: Convenience initializer missing a 'self ' call to another initializer
{
if (self = [super initWithCoder:aDecoder]) // warning: convenience initializer should not invoke an initializer on 'super'
{
// some init stuff here
}
return self;
}
Run Code Online (Sandbox Code Playgroud)