Xcode iphone 模拟器没有运行 Retina?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7965019/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 22:17:47  来源:igfitidea点击:

Xcode iphone simulator not running Retina?

objective-cxcodecocos2d-iphone

提问by MartinElvar

I have added some graphic to my app, the size is directed to the Retina Display ress.

我在我的应用程序中添加了一些图形,大小被定向到 Retina Display ress。

i have uncommented

我已取消注释

// Enables High Res mode (Retina Display) on iPhone 4 and maintains low res on all other devices
if( ! [director enableRetinaDisplay:YES] )
    CCLOG(@"Retina Display Not supported");

but when i run my program i get "Retina Display Not supported", and i'm using the iPhone 4.3 emulator

但是当我运行我的程序时,我得到“不支持 Retina 显示器”,并且我使用的是 iPhone 4.3 模拟器

What can i do to run Retina display, so that i can test my graphic.

我可以做什么来运行 Retina 显示器,以便我可以测试我的图形。

Thx

谢谢

回答by Ole Begemann

The Simulator (it's a simulator and not an emulator by the way) has a menu item to switch between retina and non-retina display: Hardware -> Device -> iPhone (Retina)

模拟器(顺便说一下,它是模拟器而不是模拟器)有一个菜单项可以在视网膜和非视网膜显示之间切换:硬件 -> 设备 -> iPhone(视网膜)