CCMenuItemImage *adBanner = [CCMenuItemImage
itemFromNormalImage:@"personalad.png"
selectedImage:@"personalad.png"
target:self
selector:@selector(openURLforAd)];
I get testsAppDelegate.mm:175: error: ‘CCMenuItemImage’ was not declared in this scope
cocos2d::CCMenuItemImage *adBanner = [cocos2d::CCMenuItemImage
itemFromNormalImage:@"personalad.png"
selectedImage:@"personalad.png"
target:self
selector:@selector(openURLforAd)];
I get testsAppDelegate.mm:169: error: ‘CCMenuItemImage’ is not an Objective-C class name or alias
I’m trying to integrate the AdWhirl iOS SDK into the iOS side of the cocos2d-x project, but I can’t seem to figure out how to use CCMenuItemImage in testsAppDelegate.mm without putting the cocos2d:: scope operator… I see that there are cocos2d calls in testsAppDelegate.mm but they’re all in c++ format like cocos2d::CCDirector::sharedDirector()->pause();
How can I make a cocos2d function call and use cocos2d classes in this .mm file? I have already imported: #import “cocos2d.h”
Any clues would be helpful. Thanks!