Cocos2D + Disabling only Retina iPad Graphics

梦想的初衷 提交于 2019-12-04 20:22:54

So it was quite simple. Added this code to the AppDelegate.m File

if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
{
    [director enableRetinaDisplay:NO];


} else {

    [director enableRetinaDisplay:YES];

}

Boom. Hope this can help someone else as I didn't see any readily available solutions.

as of july 2015 this still works great. you just have to change it like this:

if ( [[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad )
    {
        [director_ enableRetinaDisplay:NO];
    } else {
        if( ! [director_ enableRetinaDisplay:YES] )
    }
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!