Just setting up a simple button using CCMenuItemImage like this to create and initialize it -
CCMenuItemImage* hudMenuItem = [CCMenuItemImage itemFromNormalImage:@"ButtonOne_1.png" selectedImage:@"ButtonOne_2.png" target:self selector:@selector(jumpButtonTouched:)];
But for some reason I am getting this error -
*** Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '+[NSInvocation invocationWithMethodSignature:]: method signature argument cannot be nil'
EDIT:
This is the method being called when the button is pushed -
-(void)jumpButtonTouched {
CCLOG(@"TAPPED");
}