So i'm trying to make a button to take me to another scene like a start button. This is the error:
instance meathod 'target:selector:' not found (return type defaults to 'id')
what does this mean exactly?here is the trouble causing snippet:
if( (self=[super init]) ) {
CCMenuItemImage *item1 = [[CCMenuItemImage itemWithNormalImage:@"icon.png" selectedImage:@"icon.png"] //<------ HERE
target:self
selector:@selector(doThis:)];
CCMenu *menu = [CCMenu menuWithItems:item1, nil];
[self addChild:menu];
}
return self;
}
-(void)doThis:(id)sender{
}
i really don't know what i'm doing wrong here, any advice is much appreciated.
thanks a bunch