In my game when a user loses the game over screen just appears as a popup with a faded background, while the game is still running. I've placed a back button which returns the user to the MenuScene and a replay which replays the GameScene. when I run the code after setting an exception breakpoint, I got an error pointing to the CCMenuItem.m class in the method
-(id) initWithNormalImage: (NSString*) normalI selectedImage:(NSString*)selectedI disabledImage: (NSString*) disabledI target:(id)target selector:(SEL)selector;
on the line:
[t performSelector:selector withObject:sender];
and the log printed:
-[GameOverLayer backToMenuScene:]: unrecognized selector sent to instance 0x151b9c20
How can I solve this issue?
UPDATE Also the exception break point pointed to the line
_block(self);
In the CCMenuItem.m class in the activate method.