cocos2d-iphone 区分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
}

posted on 2013-01-02 20:30  紫澜  阅读(228)  评论(0编辑  收藏  举报