How to detect the device is using like iphone or ipad?

I’m using newest cocos2dx version, I know that one of solution is using bridge class to obj c like UIUserInterfaceIdiomPad, but I dont know how to implemented in my project, or in cocos2dx has it own ways ? Thanks :slight_smile:

anyone can help me ?

Solved from these link :
http://techbirds.in/how-to-call-objective-c-from-c-in-cocos2d-x/


Thanks

@adesuluh,

You can have look into this function.
Application::getInstance()->getTargetPlatform();

Regards,
Gurudath

2 Likes