我已经编写了几个可以工作并且看起来没有错误的应用程序(即,它们不会崩溃......)但是我收到以下代码的警告(我使用了几次) -
在@interface -
GameViewController *controller;
在@implementation -
-(id)initWithOwner:(GameViewController *)aController withName:(NSString *)manName {
if (self = [super init]) {
// do stuff
}
controller = aController;
在最后一行,它说“取消引用空指针”。我对 Objective-C(和 C 也是)相当陌生,所以我不知道它的含义。任何帮助和解释表示赞赏!