cocos2diphone 区分ipad和iphone

iPad or iPhone

iPad

if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
    // indicates game is running on iPad
}

iPhone

else {
    // indicates game is running on iPhone
}

原文地址:https://www.cnblogs.com/ketmales/p/2842402.html