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
Xcode iphone simulator not running Retina?
提问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(视网膜)
回答by Erwin Bantilan
You can find the full instruction below:
您可以在下面找到完整的说明:
http://gensanblog.com/2012/11/16/how-to-activate-retina-mode-in-xcode-ios-simulator/
http://gensanblog.com/2012/11/16/how-to-activate-retina-mode-in-xcode-ios-simulator/