問題 這種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,然後進一步使用