问题 这种warning在Build的时候不用出现的,但用Xcode的静态分析工具 "Analyze",会提示: warning:Instance variable used while 'self' is not set to the result of '[(super or self) init…]'问题原因: warning:Instance variable used while 'self' is not set to the result of '[(super or self) init…]'问题原因: 修改如下: warning:Instance variable used while 'self' is not set to the result of '[(super or self) init…]'问题原因: 原因: 在init有关的初始化方法中,必须先使用 [super init]来获取self,然后进一步使用